@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Cinzel+Decorative:wght@400;700&family=JetBrains+Mono:wght@400;500;700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

/* ============================================================
   GOTHIC THEME — Red · Black · White
   Chelsa Mariam John Portfolio
   ============================================================ */

:root {
  /* --- Gothic Color Palette --- */
  --bg-void: #000000;
  /* Pure black */
  --bg-main: #050505;
  /* Pure dark grey, no red tint */
  --bg-surface: rgba(12, 12, 12, 0.75);
  --bg-card: rgba(16, 16, 16, 0.85);
  --bg-card-hover: rgba(26, 26, 26, 0.92);

  --crimson: #9b0000;
  --crimson-mid: #c0001a;
  --crimson-bright: #dc143c;
  --crimson-glow: #ff2244;
  --blood: #6b0010;
  --maroon: #4a0010;

  --ivory: #f5f0e8;
  --white: #ffffff;
  --white-muted: rgba(245, 240, 232, 0.75);
  --white-dim: rgba(245, 240, 232, 0.4);
  --white-ghost: rgba(245, 240, 232, 0.12);

  --border-subtle: rgba(155, 0, 0, 0.2);
  --border-mid: rgba(192, 0, 26, 0.4);
  --border-bright: rgba(220, 20, 60, 0.7);

  --shadow-crimson: 0 0 20px rgba(220, 20, 60, 0.25);
  --shadow-deep: 0 8px 40px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 30px rgba(155, 0, 0, 0.4);

  --font-gothic: 'Cinzel', serif;
  --font-deco: 'Cinzel Decorative', serif;
  --font-body: 'Lora', serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scrollbar-width: thin;
  scrollbar-color: var(--crimson) var(--bg-void);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-void);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--crimson), var(--blood));
  border-radius: 3px;
}

body {
  background-color: var(--bg-main);
  color: var(--ivory);
  font-family: var(--font-body);
  line-height: 1.75;
  overflow-x: hidden;

  /* Faint grey texture pattern only — no red glow */
  background-image:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.012'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================================
   GLOBAL CUSTOM CURSOR SYSTEM
   ============================================================ */

/* All elements and pseudo-elements default to the custom cross cursor to prevent fallback to system arrow */
*,
*::before,
*::after {
  cursor: url('../images/cursor-noBg.png') 62 66, auto;
}

/* Clickable elements and their children get the custom hand cursor */
a,
a *,
button,
button *,
label,
label *,
select,
select *,
input[type="submit"],
input[type="button"],
.btn,
.btn *,
.shortcut-btn,
.shortcut-btn *,
.mobile-menu-btn,
.mobile-menu-btn *,
.timeline-card,
.timeline-card *,
.project-trigger,
.project-trigger *,
.modal-close,
.modal-close *,
[role="button"],
[role="button"] *,
[onclick],
[onclick] * {
  cursor: url('../images/hand-removebg.png') 32 32, pointer !important;
}

/* Text inputs get the text cursor for editing usability */
input[type="text"],
input[type="email"],
textarea {
  cursor: text !important;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0 5rem;
  position: relative;
}

/* ============================================================
   GOTHIC GLASS CARD
   ============================================================ */
.gothic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  /* Gothic: sharp corners, not round */
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.gothic-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(155, 0, 0, 0.06) 0%,
      transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 0;
}

.gothic-card:hover::before {
  opacity: 1;
}

.gothic-card:hover {
  border-color: var(--border-mid);
  box-shadow: var(--shadow-deep), var(--shadow-crimson);
}

.gothic-card>* {
  position: relative;
  z-index: 1;
}

/* ============================================================
   SECTION TITLE — Gothic Ornamental
   ============================================================ */
.section-title {
  font-family: var(--font-gothic);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--ivory);
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-subtitle {
  text-align: center;
  color: var(--white-dim);
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 4rem;
}

/* Ornamental divider (SVG flourish) */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--crimson-mid);
}

.ornament-divider svg {
  width: 28px;
  height: 28px;
  opacity: 0.7;
}

.ornament-line {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--crimson), transparent);
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(4, 0, 2, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  cursor: url('../images/cursor-noBg.png') 62 66, auto;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
}

.logo {
  font-family: var(--font-deco);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ivory);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.logo:hover {
  color: var(--crimson-bright);
  text-shadow: 0 0 12px rgba(220, 20, 60, 0.6);
}

.logo-symbol {
  color: var(--crimson-bright);
  font-size: 1.5rem;
  text-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-gothic);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white-muted);
  transition: var(--transition);
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--crimson-bright);
  box-shadow: 0 0 6px var(--crimson-bright);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--ivory);
  padding: 0.35rem 0.7rem;
  border-radius: 3px;
  font-size: 1.2rem;
  cursor: url('../images/hand-removebg.png') 32 32, pointer;
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  border-color: var(--crimson-mid);
  color: var(--crimson-bright);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

/* Particle canvas fills the hero */
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Vignette overlay at bottom of hero */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-main), transparent);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

/* Gothic Red top bar above name */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.eyebrow-line {
  width: 40px;
  height: 2px;
  background: var(--crimson-bright);
  box-shadow: 0 0 8px var(--crimson-bright);
}

.eyebrow-text {
  font-family: var(--font-gothic);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--crimson-bright);
}

.hero-text h1 {
  font-family: var(--font-deco);
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--ivory);
  letter-spacing: 0.04em;
}

.hero-text h1 .name-highlight {
  color: var(--crimson-bright);
  text-shadow: 0 0 20px rgba(220, 20, 60, 0.5), 0 0 40px rgba(220, 20, 60, 0.2);
}

.hero-tagline {
  font-family: var(--font-gothic);
  font-size: 1.3rem;
  color: var(--white-muted);
  margin-bottom: 1.5rem;
  min-height: 2rem;
  letter-spacing: 0.04em;
}

.hero-tagline .typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--crimson-bright);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

.hero-description {
  font-size: 1rem;
  color: var(--white-dim);
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-gothic);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: url('../images/hand-removebg.png') 32 32, pointer;
  transition: var(--transition);
  border-radius: 2px;
}

.btn-primary {
  background: var(--crimson);
  color: var(--ivory);
  border: 1px solid var(--crimson-mid);
}

.btn-primary:hover {
  background: var(--crimson-bright);
  border-color: var(--crimson-glow);
  box-shadow: 0 0 20px rgba(220, 20, 60, 0.45), 0 4px 15px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--border-mid);
}

.btn-secondary:hover {
  background: var(--white-ghost);
  border-color: var(--ivory);
  box-shadow: 0 0 12px rgba(245, 240, 232, 0.1);
  transform: translateY(-2px);
}

/* ============================================================
   TERMINAL WIDGET
   ============================================================ */
.terminal-widget {
  width: 100%;
  max-width: 480px;
  height: 390px;
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  box-shadow: var(--shadow-deep), 0 0 0 1px var(--border-subtle);
  border-radius: 4px;
  overflow: hidden;
}

.terminal-header {
  background: rgba(30, 2, 5, 0.95);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.terminal-buttons {
  display: flex;
  gap: 0.5rem;
}

.terminal-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-btn.close {
  background: #6b0010;
}

.terminal-btn.minimize {
  background: #6b4c00;
}

.terminal-btn.maximize {
  background: #004e1a;
}

.terminal-title {
  font-size: 0.75rem;
  color: var(--white-dim);
  letter-spacing: 0.05em;
}

.terminal-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background: rgba(4, 0, 2, 0.97);
  color: #e85d75;
  scrollbar-width: thin;
  scrollbar-color: var(--blood) transparent;
}

.terminal-output {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.terminal-line {
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.5;
}

.terminal-system {
  color: var(--white-dim);
}

.terminal-success {
  color: #ff6b8a;
}

.terminal-accent {
  color: var(--crimson-bright);
}

.terminal-muted {
  color: rgba(232, 93, 117, 0.5);
}

.terminal-prompt {
  color: var(--crimson-bright);
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.terminal-input {
  background: none;
  border: none;
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  outline: none;
  flex: 1;
  caret-color: var(--crimson-bright);
}

.terminal-shortcuts {
  display: flex;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: rgba(10, 1, 3, 0.95);
  border-top: 1px solid rgba(155, 0, 0, 0.15);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.shortcut-btn {
  background: rgba(155, 0, 0, 0.08);
  border: 1px solid rgba(155, 0, 0, 0.25);
  color: var(--white-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  cursor: url('../images/hand-removebg.png') 32 32, pointer;
  transition: var(--transition);
}

.shortcut-btn:hover {
  background: rgba(220, 20, 60, 0.15);
  border-color: var(--crimson-mid);
  color: var(--crimson-bright);
}

/* ============================================================
   ABOUT SECTION — Bio + 3D Cube
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.about-card {
  padding: 3rem;
}

.about-card p {
  color: var(--white-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.85;
}

.about-card p:last-child {
  margin-bottom: 0;
}

/* Rotating video */
.cube-container {
  width: 240px;
  height: 300px;
  perspective: 600px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.cube-wrapper {
  text-align: center;
}

.cube-label {
  font-family: var(--font-gothic);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crimson-mid);
  margin-top: 1.5rem;
}

.rose-video {
  width: 240px;
  height: 400px;
  object-fit: cover;
  z-index: 1;
  position: relative;
  transition: var(--transition);
}



/* ============================================================
   SKILLS SECTION
   ============================================================ */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skills-category {
  padding: 2.5rem 2rem;
}

.skills-category h3 {
  font-family: var(--font-gothic);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson-bright);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.85rem;
}

.skill-node {
  background: rgba(155, 0, 0, 0.04);
  border: 1px solid rgba(155, 0, 0, 0.18);
  border-radius: 2px;
  padding: 0.8rem 0.5rem;
  text-align: center;
  transition: var(--transition);
}

.skill-node:hover {
  background: rgba(220, 20, 60, 0.08);
  border-color: var(--crimson-mid);
  box-shadow: 0 0 12px rgba(155, 0, 0, 0.3);
  transform: translateY(-3px);
}

.skill-icon-placeholder {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
  display: block;
}

.skill-node span {
  display: block;
  font-family: var(--font-gothic);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--white-muted);
}

.skill-node.highlighted {
  border-color: var(--crimson-bright);
  background: rgba(220, 20, 60, 0.1);
  box-shadow: 0 0 18px rgba(220, 20, 60, 0.35);
}

/* ============================================================
   EXPERIENCE TIMELINE
   ============================================================ */
.timeline {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 27px;
  height: 100%;
  width: 1px;
  background: linear-gradient(180deg, var(--crimson), var(--blood) 60%, transparent);
}

.timeline-item {
  position: relative;
  padding-left: 5rem;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: 18px;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 2px solid var(--crimson-mid);
  box-shadow: 0 0 10px rgba(192, 0, 26, 0.5);
  z-index: 10;
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot,
.timeline-item.active .timeline-dot {
  border-color: var(--crimson-bright);
  box-shadow: 0 0 16px rgba(220, 20, 60, 0.6);
  background: var(--crimson);
}

.timeline-card {
  cursor: url('../images/hand-removebg.png') 32 32, pointer;
  padding: 1.75rem 2rem;
}

.timeline-header-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.role-title {
  font-family: var(--font-gothic);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ivory);
}

.company-name {
  font-family: var(--font-gothic);
  font-size: 0.85rem;
  color: var(--crimson-bright);
  letter-spacing: 0.08em;
  display: block;
  margin-top: 0.2rem;
}

.role-duration {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--white-dim);
  white-space: nowrap;
}

.timeline-body-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.45s ease-out, opacity 0.3s ease;
}

.timeline-item.active .timeline-body-content {
  max-height: 600px;
  opacity: 1;
  margin-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.timeline-body-content ul {
  list-style: none;
}

.timeline-body-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
  color: var(--white-muted);
  font-size: 0.95rem;
}

.timeline-body-content li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--crimson-mid);
  font-size: 0.7rem;
  top: 0.15em;
}

.timeline-expander {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-gothic);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson-mid);
  margin-top: 0.75rem;
  transition: var(--transition);
}

.timeline-expander::after {
  content: '↓';
  transition: transform 0.35s;
}

.timeline-item.active .timeline-expander {
  color: var(--crimson-bright);
}

.timeline-item.active .timeline-expander::after {
  transform: rotate(-180deg);
}

/* ============================================================
   EDUCATION SECTION
   ============================================================ */
.education-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.education-card {
  padding: 3rem;
  width: 100%;
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.education-title-group h3 {
  font-family: var(--font-gothic);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: 0.05em;
}

.education-title-group .specialisation {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white-muted);
  display: block;
  margin-top: 0.25rem;
}

.education-title-group .institution {
  font-family: var(--font-gothic);
  font-size: 0.9rem;
  color: var(--crimson-bright);
  letter-spacing: 0.08em;
  display: block;
  margin-top: 0.4rem;
}

.education-title-group .location {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--white-dim);
  font-style: italic;
  display: block;
  margin-top: 0.15rem;
}

.education-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  text-align: right;
}

.education-meta .duration {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--white-muted);
}

.education-meta .grade {
  font-family: var(--font-gothic);
  font-size: 0.9rem;
  color: var(--crimson-bright);
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(220, 20, 60, 0.08);
  border: 1px solid rgba(220, 20, 60, 0.2);
  padding: 0.15rem 0.6rem;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .education-meta {
    align-items: flex-start;
    text-align: left;
  }
}

.education-body ul {
  list-style: none;
}

.education-body li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--white-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.education-body li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--crimson-mid);
  font-size: 0.7rem;
  top: 0.15em;
}

.education-body li:last-child {
  margin-bottom: 0;
}

/* ============================================================
   PROJECTS HORIZONTAL SCROLL (STICKY & PINNED)
   ============================================================ */
.projects-pin-container {
  display: block;
}

.projects-sticky-wrapper {
  display: block;
}

.projects-sticky-content {
  display: block;
}

.projects-horizontal-header-wrapper {
  display: block;
  width: 100%;
}

.projects-horizontal-track {
  display: flex;
  gap: 2.5rem;
  padding: 0 10vw;
  width: max-content;
  will-change: transform;
}

.scroll-indicator-text {
  text-align: center;
  font-family: var(--font-gothic);
  font-size: 0.8rem;
  color: var(--crimson-bright);
  letter-spacing: 0.15em;
  margin-top: 0.5rem;
  animation: pulse-glow 2s infinite;
  text-transform: uppercase;
  font-weight: 600;
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.4;
    text-shadow: 0 0 4px rgba(220, 20, 60, 0);
  }

  50% {
    opacity: 1;
    text-shadow: 0 0 8px rgba(220, 20, 60, 0.6);
  }
}

@media (min-width: 769px) {
  .projects-pin-container {
    display: block;
  }

  .projects-sticky-wrapper {
    position: relative;
    height: 400vh;
    /* Increased for smoother scroll duration */
    background-color: var(--bg-void);
  }

  .projects-sticky-content {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Track starts on left */
    background-color: var(--bg-main);
    z-index: 5;
  }

  .projects-horizontal-header-wrapper {
    width: 100%;
    text-align: center;
    margin-bottom: 5.5rem;
    flex-shrink: 0;
  }

  .projects-horizontal-track {
    display: flex;
    gap: 3rem;
    padding: 0 10vw;
    width: max-content;
    will-change: transform;
  }

  .projects-horizontal-track .project-card {
    flex-shrink: 0;
    width: 380px;
    height: 510px;
    display: flex;
    flex-direction: column;
  }

  .scroll-indicator-text {
    display: block;
  }
}

@media (max-width: 768px) {
  .projects-pin-container {
    display: block;
  }

  .projects-sticky-wrapper {
    height: auto;
  }

  .projects-sticky-content {
    position: relative;
    height: auto;
    width: 100%;
    overflow: visible;
    display: block;
  }

  .projects-horizontal-header-wrapper {
    padding-top: 4rem;
  }

  .projects-horizontal-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 1.5rem;
    width: 100%;
  }

  .projects-horizontal-track .project-card {
    width: 100%;
    height: auto;
  }

  .scroll-indicator-text {
    display: none;
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.project-thumbnail {
  height: 180px;
  background: linear-gradient(135deg, rgba(100, 0, 10, 0.35), rgba(30, 0, 5, 0.6));
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

/* Subtle hex grid pattern in thumbnail overlaying the screenshot */
.project-thumbnail::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%239b0000' fill-opacity='0.06'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.3h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 2;
  /* Put hex grid overlay on top of the image */
  pointer-events: none;
}

.project-image {
  position: relative;
  top: -70px;
  max-width: 100%;
  height: auto;
  z-index: 3;
  transition: var(--transition);
  filter: grayscale(0.2) contrast(1.1) brightness(0.9);
}

.project-card:hover .project-image {
  transform: scale(1.06);
  filter: grayscale(0) contrast(1.15) brightness(1.0);
}

.project-info {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-family: var(--font-gothic);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ivory);
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.project-card:hover .project-title {
  color: var(--crimson-bright);
}

.project-desc {
  font-size: 0.92rem;
  color: var(--white-dim);
  margin-bottom: 1.25rem;
  flex: 1;
  line-height: 1.75;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: rgba(155, 0, 0, 0.1);
  border: 1px solid rgba(192, 0, 26, 0.25);
  color: var(--crimson-bright);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

.project-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.project-link {
  font-family: var(--font-gothic);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.project-link:hover {
  color: var(--ivory);
}

.project-trigger {
  background: none;
  border: none;
  font-family: var(--font-gothic);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--crimson-mid);
  cursor: url('../images/hand-removebg.png') 32 32, pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
}

.project-trigger:hover {
  color: var(--crimson-bright);
  text-shadow: 0 0 8px rgba(220, 20, 60, 0.4);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: flex-start;
}

.contact-info-panel {
  padding: 2.5rem;
}

.contact-info-panel h3 {
  font-family: var(--font-gothic);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ivory);
  margin-bottom: 0.75rem;
}

.contact-info-panel>p {
  color: var(--white-dim);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 2px;
  background: rgba(155, 0, 0, 0.1);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-method-details span {
  display: block;
  font-family: var(--font-gothic);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--crimson-mid);
  margin-bottom: 0.2rem;
}

.contact-method-link {
  text-decoration: none;
  color: inherit;
  display: block;
  outline: none;
}

.contact-method-link .contact-method-item {
  transition: transform 0.3s ease;
}

.contact-method-link:hover .contact-method-item {
  transform: translateX(4px);
}

.contact-method-link:hover .contact-icon {
  color: var(--crimson-bright);
  border-color: var(--crimson-mid);
  background: rgba(155, 0, 0, 0.15);
  box-shadow: 0 0 12px rgba(220, 20, 60, 0.3);
}

.contact-url {
  display: block;
  font-size: 0.9rem;
  color: var(--white-muted);
  transition: var(--transition);
}

.contact-method-link:hover .contact-url {
  color: var(--ivory);
}

.social-links {
  display: flex;
  gap: 0.85rem;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 2px;
  background: rgba(155, 0, 0, 0.06);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-dim);
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.1rem;
}

.social-icon-btn:hover {
  color: var(--crimson-bright);
  border-color: var(--crimson-mid);
  background: rgba(155, 0, 0, 0.15);
  box-shadow: 0 0 12px rgba(220, 20, 60, 0.3);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form-card {
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-gothic);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--crimson-mid);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(4, 0, 2, 0.7);
  border: 1px solid rgba(155, 0, 0, 0.2);
  border-radius: 2px;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-input::placeholder {
  color: var(--white-ghost);
}

.form-input:focus {
  border-color: var(--crimson-mid);
  background: rgba(10, 1, 3, 0.9);
  box-shadow: 0 0 12px rgba(155, 0, 0, 0.2);
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  margin-top: 1rem;
  font-family: var(--font-gothic);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-align: center;
  display: none;
}

.form-status.success {
  color: var(--crimson-bright);
  display: block;
}

.form-status.error {
  color: #ff6b6b;
  display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-content p {
  font-family: var(--font-gothic);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--white-dim);
}

.footer-content .footer-symbol {
  color: var(--crimson-bright);
}

/* ============================================================
   MODALS
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(2, 0, 1, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 90%;
  max-width: 820px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
  border-radius: 3px;
  transform: translateY(20px);
  transition: transform 0.35s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--blood) transparent;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(155, 0, 0, 0.1);
  border: 1px solid var(--border-subtle);
  color: var(--white-dim);
  width: 36px;
  height: 36px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: url('../images/hand-removebg.png') 32 32, pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--crimson-bright);
  border-color: var(--crimson-mid);
  background: rgba(155, 0, 0, 0.2);
}

/* Resume Paper */
.resume-paper {
  background: #f8f4ee;
  color: #1a0a0a;
  padding: 4rem;
  border-radius: 2px;
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Lora', serif;
  line-height: 1.55;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.resume-header {
  border-bottom: 2px solid #4a0010;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.resume-name h1 {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a0a0a;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.resume-name p {
  font-size: 1rem;
  color: #6b0010;
  font-style: italic;
}

.resume-meta {
  text-align: right;
  font-size: 0.82rem;
  color: #4a3030;
}

.resume-meta a {
  color: #6b0010;
  text-decoration: none;
}

.resume-section {
  margin-bottom: 2rem;
}

.resume-section-title {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4a0010;
  border-bottom: 1px solid #c8a8a8;
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
}

.resume-skills-grid {
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.resume-skills-grid p strong {
  color: #1a0a0a;
}

.resume-item {
  margin-bottom: 1.5rem;
}

.resume-item-header {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.92rem;
  color: #1a0a0a;
  margin-bottom: 0.2rem;
}

.resume-school {
  color: #2b3e83;
  /* Deep steel blue to match user's scholastic resume styling exactly */
  font-weight: 700;
}

.resume-location {
  font-weight: normal;
  color: #1a0a0a;
}

.resume-item-subheader {
  display: flex;
  justify-content: space-between;
  font-style: italic;
  font-size: 0.88rem;
  color: #6b3030;
  margin-bottom: 0.5rem;
}

.resume-degree {
  color: #1a0a0a;
}

.resume-date {
  color: #1a0a0a;
}

.resume-item ul {
  list-style: disc;
  margin-left: 1.25rem;
  font-size: 0.87rem;
  color: #3a2020;
}

.resume-item li {
  margin-bottom: 0.35rem;
}

/* Project Modal */
.project-modal-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-modal-header h2 {
  font-family: var(--font-gothic);
  font-size: 2rem;
  font-weight: 700;
  color: var(--crimson-bright);
  text-shadow: 0 0 20px rgba(220, 20, 60, 0.3);
  margin-bottom: 0.4rem;
}

.project-modal-header p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--crimson-mid);
}

.project-modal-body h4 {
  font-family: var(--font-gothic);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory);
  margin: 1.5rem 0 0.5rem;
}

.project-modal-body p {
  color: var(--white-muted);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.project-modal-body ul {
  list-style: none;
}

.project-modal-body li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--white-muted);
  font-size: 0.95rem;
}

.project-modal-body li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--crimson-mid);
  font-size: 0.7rem;
  top: 0.18em;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-description {
    max-width: 100%;
  }

  .terminal-widget {
    max-width: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cube-wrapper {
    margin: 2rem auto 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 6rem 0 3rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 5rem;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(3, 0, 1, 0.98);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(155, 0, 0, 0.25);
    gap: 1.5rem;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .projects-horizontal-track {
    grid-template-columns: 1fr;
  }

  .resume-paper {
    padding: 2rem 1.25rem;
  }

  .timeline::before {
    left: 14px;
  }

  .timeline-dot {
    left: 5px;
  }

  .timeline-item {
    padding-left: 2.5rem;
  }
}

/* ============================================================
   PRINT — Resume PDF Export
   ============================================================ */
/* ============================================================
   HERO BACKGROUND & OVERLAY
   ============================================================ */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
  filter: grayscale(30%) brightness(0.38);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(4, 0, 2, 0.55) 0%, rgba(4, 0, 2, 0.82) 70%, var(--bg-main) 100%);
}

/* ============================================================
   HERO BAT — Pre-placed draggable decoration
   ============================================================ */
.hero-bat {
  position: absolute;
  right: 3%;
  bottom: 12%;
  width: 160px;
  z-index: 4;
  filter: invert(1) drop-shadow(0 0 14px rgba(255, 255, 255, 0.25));
  transition: filter 0.3s, opacity 0.3s;
  opacity: 0.8;
}

.hero-bat img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-bat:hover {
  filter: invert(1) drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
  opacity: 1;
}

/* ============================================================
   SCROLL HINT
   ============================================================ */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: floatHint 2.5s ease-in-out infinite;
}

.scroll-hint-line {
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--crimson-mid), transparent);
}

.scroll-hint-text {
  font-family: var(--font-gothic);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--crimson-mid);
}

@keyframes floatHint {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.6;
  }

  50% {
    transform: translateX(-50%) translateY(-8px);
    opacity: 1;
  }
}

/* ============================================================
   SECTION DIVIDERS — Gothic Images
   ============================================================ */
.gothic-divider {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0;
  position: relative;
}

.divider-img {
  max-width: 600px;
  width: 50%;
  height: auto;
  display: block;
  /* Convert to subtle light grey, reducing brightness a teeny bit */
  filter: brightness(0) invert(0.82);
  opacity: 0.75;
}

.skull-divider {
  filter: brightness(0) invert(0.82);
  opacity: 0.75;
}

/* ============================================================
   CORNER DECORATIONS (About section)
   ============================================================ */
.corner-decoration {
  position: absolute;
  width: 90px;
  opacity: 0.85;
  z-index: 2;
  transition: opacity 0.3s, filter 0.3s;
  /* Make it white with a soft white glow like the bat-removebg */
  filter: invert(1) drop-shadow(0 0 14px rgba(255, 255, 255, 0.25));
}

.corner-decoration:hover {
  opacity: 1;
  filter: invert(1) drop-shadow(0 0 20px rgba(255, 255, 255, 0.45));
}

.corner-decoration img {
  width: 100%;
  height: auto;
  display: block;
}

.corner-tl {
  top: 1rem;
  left: 1rem;
}

.corner-br {
  bottom: 1rem;
  right: 1rem;
  transform: rotate(180deg);
}

/* ============================================================
   ABOUT VISUAL — Cube in Gothic Frame
   ============================================================ */
.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cube-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cube-frame-top {
  position: absolute;
  width: 650px;
  height: 242px;
  left: 50%;
  top: -270px;
  transform: translateX(-50%);
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.85;
  filter: brightness(0) invert(1);
  pointer-events: none;
  z-index: 0;
}

.cube-frame-bottom {
  position: absolute;
  width: 650px;
  height: 242px;
  left: 50%;
  bottom: -260px;
  transform: translateX(-50%);
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.85;
  filter: brightness(0) invert(1);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   ABOUT BADGES
   ============================================================ */
.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.about-badge {
  background: rgba(155, 0, 0, 0.08);
  border: 1px solid rgba(192, 0, 26, 0.25);
  color: var(--white-muted);
  font-family: var(--font-gothic);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  transition: var(--transition);
}

.about-badge:hover {
  background: rgba(220, 20, 60, 0.1);
  border-color: var(--crimson-mid);
  color: var(--ivory);
}

/* ============================================================
   LOGO DOT
   ============================================================ */
.logo-dot {
  color: var(--crimson-bright);
}

/* ============================================================
   HERO TERMINAL wrapper (keeps terminal from overflowing)
   ============================================================ */
.hero-terminal {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}


/* ============================================================
   DRAGGABLE ITEM base
   ============================================================ */
.draggable-item {
  user-select: none;
  -webkit-user-drag: none;
}

/* ============================================================
   HERO CONTENT z-index stack
   ============================================================ */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

/* ============================================================
   ABOUT SECTION relative positioning for corners
   ============================================================ */
#about {
  position: relative;
}

/* ============================================================
   LOGO ADJUSTMENTS
   ============================================================ */
.nav-container {
  position: relative;
}

/* ============================================================
   FIXED VIEWPORT CORNERS (Framing the browser window)
   ============================================================ */
.fixed-corner {
  position: fixed;
  width: 90px;
  height: auto;
  z-index: 10000;
  /* Layer on top of header/page contents */
  pointer-events: none;
  /* Make click-through so it doesn't block interaction */
  opacity: 0.85;
  filter: invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.25));
  transition: opacity 0.3s;
}

.fixed-corner img {
  width: 100%;
  height: auto;
  display: block;
}

.fixed-corner.corner-bl {
  bottom: 0.75rem;
  left: 0.75rem;
}

.fixed-corner.corner-br {
  bottom: 0.75rem;
  right: 0.75rem;
  transform: scaleX(-1);
  /* Flipped horizontally */
}

.fixed-corner.corner-tl {
  top: 0.75rem;
  left: 0.75rem;
  transform: scaleY(-1);
  /* Flipped vertically */
}

.fixed-corner.corner-tr {
  top: 0.75rem;
  right: 0.75rem;
  transform: scale(-1);
  /* Flipped both directions / rotated 180deg */
}

@media (max-width: 768px) {
  .fixed-corner {
    width: 60px;
    /* Smaller on tablet screen */
    opacity: 0.6;
  }
}

@media (max-width: 480px) {
  .fixed-corner {
    display: none;
    /* Hide on small mobile screen */
  }
}

/* ============================================================
   GO TO TOP BUTTON
   ============================================================ */
.go-to-top-btn {
  position: fixed;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 99999;
  background: transparent;
  border: none;
  padding: 0;
  width: 50px;
  height: 50px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1), transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease;
  outline: none;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.9)) brightness(0.9);
}

.go-to-top-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: brightness(0) invert(1); /* Forces arrow image to render as white */
}

.go-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.go-to-top-btn:hover {
  transform: translateX(-50%) scale(1.15) translateY(-5px);
  filter: drop-shadow(0 0 15px rgba(155, 0, 0, 0.95)) brightness(1.2);
}

@media print {
  body * {
    visibility: hidden;
  }

  #resume-modal,
  #resume-modal .modal-content,
  #resume-modal .resume-paper,
  #resume-modal .resume-paper * {
    visibility: visible;
  }

  #resume-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    background: transparent;
    padding: 0;
    margin: 0;
  }

  #resume-modal .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100%;
    max-height: none;
    overflow: visible;
  }

  .modal-close,
  .print-control-header {
    display: none !important;
  }

  .resume-paper {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    box-shadow: none !important;
  }

  a {
    color: #000 !important;
    text-decoration: underline !important;
  }
}