@font-face {
  font-family: 'Computer';
  src: url('../fonts/computer/roman.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Computer';
  src: url('../fonts/computer/italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Computer';
  src: url('../fonts/computer/bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Computer';
  src: url('../fonts/computer/bolditalic.ttf') format('truetype');
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

/* --- 1. VARIABLE DEFINITIONS & THEMES --- */
:root {
  --font-sans: 'Inter Display', sans-serif;
  --font-serif: 'Computer', serif;

--bg-color: #0b0b0b;
--text-color: #f8f9fa;
--text-muted: #f8f9fa9b !important;
--card-bg: rgba(30, 30, 30, 0.7);
--card-border: rgba(255, 255, 255, 0.1);
--map-opacity: 0.25;
--map-filter: invert(0.9) hue-rotate(180deg);
--input-bg: #2b3035;
  --nav-blur: 12px;
  --mobile-menu-blur: 80px !important;
  --nav-height: 80px;
}


/* --- 2. GLOBAL STYLES & TYPOGRAPHY --- */
body {
  font-family: var(--font-sans);
  font-variation-settings: 'opsz' 14; 
  font-weight: 400;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  padding-top: var(--nav-height); 
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

main, .flex-grow-wrapper{
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6, .display-font {
  font-family: var(--font-sans);
  font-weight: 800;
  font-variation-settings: 'opsz' 32 !important; 
  letter-spacing: -0.03em;
}

.academic-text, blockquote {
  font-family: var(--font-serif);
  font-size: 1.25rem !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* UNIVERSAL RESET: Strips default browser blue/purple ONLY */
a {
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

/* STANDARD BODY LINKS: Only applies to links inside paragraphs/content */
/* We explicitly exclude navbar components and buttons */
a:not(.btn):not(.nav-link):not(.navbar-brand):not(.lang-btn-mobile):not(.nav-socials a) {
  color: var(--text-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1px;
}

a:not(.btn):not(.nav-link):not(.navbar-brand):not(.lang-btn-mobile):not(.nav-socials a):hover {
  opacity: 0.8;
  border-bottom: 1.5px solid var(--text-color);
}

/* Fix for Post Content Links */
.post-content a {
  font-family: var(--font-serif);
  font-style: italic;
}

/* --- 3. CUSTOM NAVBAR (FIXED-TOP) --- */
.custom-navbar {
  backdrop-filter: blur(var(--nav-blur));
  -webkit-backdrop-filter: blur(var(--nav-blur));
  background: var(--card-bg);
  border-bottom: 1px solid var(--card-border);
  min-height: var(--nav-height);
  z-index: 1050;
  display: flex;
  align-items: center; /* This centers the BRAND and the TOGGLER vertically */
}

/* Ensure the Bootstrap container inside the nav is also a flex row */
.custom-navbar .container {
  display: flex;
  align-items: center; 
  justify-content: space-between;
}

.navbar-brand {
  font-size: 1.5rem; 
  color: var(--text-color) !important;
  font-weight: 800;
  margin-right: 2rem;
  padding: 0; 
  line-height: 1; 
}

.nav-link {
  font-family: var(--font-sans);
  font-variation-settings: "opsz" 14; 
  font-size: 1rem !important; 
  font-weight: 500;
  color: var(--text-color) !important;
  opacity: 0.6;
  padding: 0 1rem !important; 
  line-height: 1; 
  transition: opacity 0.2s;
}

.nav-socials i {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}

.nav-socials a {
  color: var(--text-color) !important; /* Forces visibility */
  font-size: 1.25rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  text-decoration: none;
}

.nav-socials a:hover {
  opacity: 1;
}

/* Fix for mobile offcanvas spacing */
@media (max-width: 991.98px) {
  .nav-socials {
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1.5rem;
    width: 100%;
  }
}

/* --- 4. MOBILE-ONLY STYLES (OFFCANVAS) --- */
@media (max-width: 991.98px) {
  .mobile-blur {
    background: var(--card-bg) !important;
    backdrop-filter: blur(var(--mobile-menu-blur)) !important;
    -webkit-backdrop-filter: blur(var(--mobile-menu-blur)) !important;
    height: 100dvh !important;
  }

  .offcanvas-body {
    padding-bottom: 3rem !important;
  }

  .primary-nav .nav-link {
    font-size: 2.8rem !important;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  .lang-btn-mobile {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-color);
  }

  .lang-btn-mobile:not(.active) {
    opacity: 0.3;
  }
}

/* --- 5. DESKTOP-ONLY STYLES (NAVBAR RESET) --- */
@media (min-width: 992px) {
  .offcanvas {
    position: static !important;
    visibility: visible !important;
    transform: none !important;
    background: transparent !important;
    border: none !important;
    width: auto !important;
    flex-grow: 1;
    display: flex !important;
    flex-direction: row !important;
  }

  .offcanvas-body {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    padding: 0 !important;
    justify-content: space-between;
    width: 100%;
  }

  .navbar-nav {
    flex-direction: row !important;
    margin-left: 2rem;
  }

  /* Desktop Language Switcher - Minimalist Box */
  .language-nav {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .lang-btn-mobile {
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-color);
    padding: 5px 12px;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    transition: 0.2s ease;
  }

  .lang-btn-mobile:hover {
    background: var(--text-color);
    color: var(--bg-color);
  }
}

/* --- 6. SPLASH PAGE & MOVING MAP --- */
.map-wrapper {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color);
  margin-top: calc(var(--nav-height) * -1); /* Pulls splash behind the navbar */
}

.moving-map {
  position: absolute;
  top: 0; left: 0; width: 200%; height: 100%;
  background-size: 50% 100%;
  background-repeat: repeat-x;
  opacity: var(--map-opacity);
  filter: var(--map-filter);
  animation: moveMap 60s linear infinite;
  z-index: 1;
}

@keyframes moveMap {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.splash-card {
  position: relative;
  z-index: 10;
  max-width: 500px;
  width: 90%;
  border-radius: 24px;
  backdrop-filter: blur(12px);
  background: var(--card-bg);
  border: 1px solid var(--card-border) !important;
}

/* Fading Text Logic */
.fading-text-wrapper {
  position: relative;
  font-size: 1.25rem;
  height: 2rem;
  color: var(--text-muted);
}

.lang-text {
  position: absolute;
  left: 0; right: 0;
  animation: fadeTransition 6s infinite;
  opacity: 0;
}

.lang-text.de { animation-delay: 3s; }

@keyframes fadeTransition {
  0% { opacity: 0; transform: translateY(5px); }
  10%, 40% { opacity: 1; transform: translateY(0); }
  50%, 100% { opacity: 0; transform: translateY(-5px); }
}

/* --- 7. BLOG & UI ELEMENTS --- */
.form-select, .form-control {
  background-color: var(--input-bg) !important;
  color: var(--text-color) !important;
  border-color: var(--card-border) !important;
}

.badge {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: var(--card-bg) !important;
  color: var(--text-color) !important;
  border: 1px solid var(--card-border);
}

.card {
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--card-border);
  border-radius: 16px;
}

@media (prefers-color-scheme: dark) {
  .btn-outline-dark { color: #fff; border-color: #fff; }
  .btn-outline-dark:hover { background-color: #fff; color: #000; }
  .btn-close, .navbar-toggler-icon { filter: invert(1); }
}

/* --- INTEGRATED MAP OVERLAY --- */

.moving-map {
  position: absolute;
  top: 0; 
  left: 0; 
  width: 400%; 
  height: 100%;
  background-image: url('../png/welt.png'); 
  background-size: contain; 
  background-repeat: repeat-x;
  background-position: center;

  opacity: 0.02; 
  filter: invert(1) brightness(0.8) contrast(1.2);
  mix-blend-mode: screen; 
  
  animation: moveMap 120s linear infinite;
  z-index: 2;
  pointer-events: none;
}

@keyframes moveMap {
  from { transform: translateX(0); }
  /* Ensure the translation matches the background-repeat pattern */
  to { transform: translateX(-50%); }
}

/* Anpassung für den Splash-Text */
.fading-text-wrapper {
  position: relative;
  overflow: hidden;
}

.lang-text {
  position: absolute;
  width: 100%;
  left: 0;
  opacity: 0;
  animation: fadeTransition 6s infinite;
}

.lang-text.de { animation-delay: 3s; }

@keyframes fadeTransition {
  0% { opacity: 0; transform: translateY(10px); }
  10%, 40% { opacity: 1; transform: translateY(0); }
  50%, 100% { opacity: 0; transform: translateY(-10px); }
}

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

/* --- 1. THEME VARIABLES --- */
:root {
  --bg-color: #0a1a12; /* Deep Forest Green */
  --text-color: #f5f5f7;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --hero-blur: 45px;
}

/* --- 2. HERO WRAPPER (FULL WIDTH) --- */
.hero-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: calc(var(--nav-height) * -1.5);
  background-color: var(--bg-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-wrapper-splash {
    margin-top: calc(var(--nav-height) * -1) !important;
}

/* --- 3. MOTION EFFECTS (BLOBS) --- */
.blob {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  filter: blur(80px);
  animation: moveBlobs 20s infinite alternate ease-in-out;
}

.blob-1 {
  width: 60vw;
  height: 60vw;
  top: -20%;
  left: -10%;
  background: radial-gradient(circle, rgba(45, 90, 60, 0.45) 0%, rgba(10, 26, 18, 0) 70%);
  animation-duration: 25s;
}

.blob-2 {
  width: 50vw;
  height: 50vw;
  bottom: -20%;
  right: -10%;
  background: radial-gradient(circle, rgba(30, 70, 45, 0.35) 0%, rgba(10, 26, 18, 0) 70%);
  animation-duration: 35s;
  animation-direction: alternate-reverse;
}

.blob-3 {
  width: 30vw;
  height: 30vw;
  top: 30%;
  left: 40%;
  background: radial-gradient(circle, rgba(45, 90, 60, 0.2) 0%, rgba(10, 26, 18, 0) 70%);
  opacity: 0.5;
  animation-duration: 15s;
}

@keyframes moveBlobs {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10vw, 5vh) scale(1.1); }
}

/* --- 4. HERO CONTENT (GLASS) --- */
.hero-glass {
  position: relative;
  z-index: 10;
  background: var(--card-bg);
  backdrop-filter: blur(var(--hero-blur));
  -webkit-backdrop-filter: blur(var(--hero-blur));
  border: 1px solid var(--card-border);
  border-radius: 32px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-variation-settings: "opsz" 32;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.lead {
    font-weight: 400 !important;
}

/* --- 5. BUTTONS & UI --- */
.btn-primary {
  background-color: #ffffff;
  color: var(--bg-color) !important;
  border: 1px solid #ffffff;
  font-weight: 600;
  font-variation-settings: "opsz" 14;
}

.btn-primary:hover {
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
  font-weight: 600;
  font-variation-settings: "opsz" 14;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* --- 6. SCROLL INDICATOR --- */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  z-index: 10;
}

.arrow-down {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
  transform: rotate(45deg);
  animation: arrowBounce 2s infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

@keyframes arrowBounce {
  0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translate(0, 0); }
  40% { transform: rotate(45deg) translate(5px, 5px); }
}

.post-header {
  padding-top: clamp(4rem, 10vh, 8rem);
  padding-bottom: 3rem;
}

.post-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  color: var(--text-color);
  /* Subtly different from the hero title to keep it readable */
  max-width: 900px;
}

.post-meta-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.post-date {
  color: var(--text-muted);
  opacity: 0.8;
}

.post-header .lead {
  font-size: 1.5rem;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 750px;
  border-left: 2px solid var(--card-border);
  padding-left: 1.5rem;
}

.post-divider {
  border: 0;
  border-top: 1px solid var(--card-border);
  margin-top: 4rem;
  opacity: 1;
  width: 100%;
}

.post-content {
  font-family: var(--font-serif); /* Using Computer Roman */
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--text-color);
  max-width: 750px; /* Optimal reading width */
  margin: 0 auto;
}

/* Typography hierarchy within the post */
.post-content h2, 
.post-content h3 {
  font-family: var(--font-sans); 
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.post-content p {
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

/* Blockquotes using your serif italic */
.post-content blockquote {
  font-family: var(--font-sans);
  font-style: normal;
  margin: 3rem 0;
  padding: 1rem 2rem;
  border-left: 1px solid var(--text-muted);
  color: var(--text-muted);
  font-size: 1.4rem;
}

/* Styled Images with your Glassmorphism border */
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  margin: 2rem 0;
}

/* Code Blocks (Deep Forest/Glass style) */
.post-content pre {
  background: var(--card-bg) !important;
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  padding: 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 2rem 0;
}

.post-content code {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

/* Custom Blog Cards */
.blog-card {
  background: var(--card-bg) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border) !important;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Glass Input Styling */
.glass-input-group {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.lang-select-custom, .search-input-custom {
  background-color: var(--card-bg) !important;
  color: var(--text-color) !important;
  border: none !important;
  font-family: var(--font-sans);
  padding: 12px 20px;
}

.lang-select-custom {
  border-right: 1px solid var(--card-border) !important;
  width: 150px !important;
  flex: none !important;
}

.search-input-custom::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.search-input-custom:focus {
  box-shadow: none;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Footer */

.custom-footer {
  flex-shrink: 0; /* Prevents footer from squishing */
  background: var(--card-bg);
  backdrop-filter: blur(var(--nav-blur));
  -webkit-backdrop-filter: blur(var(--nav-blur));
  border-top: 1px solid var(--card-border);
}

.custom-footer .academic-text {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  opacity: 0.7;
}

.cc-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cc-link:hover {
  opacity: 1;
  color: var(--text-color);
}

.post-divider {
    border: 0;
    border-top: 1px solid var(--card-border);
    opacity: 0.5;
    margin: 4rem auto;
    max-width: 80%;
}

.legal-section h2 {
    color: var(--text-color);
    letter-spacing: -0.03em;
}

.legal-section .academic-text {
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Fokus-Effekt für die Formularfelder */
.search-input-custom:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--text-color) !important;
    color: white !important;
}

.email-link-large {
  transition: all 0.3s ease;
  display: inline-block;
  border-bottom: 2px solid transparent !important; /* Overriding standard link style */
}

.email-link-large:hover {
  opacity: 1 !important;
  transform: translateY(-2px);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  color: #fff !important;
}

/* --- 404 FLOATING BACKGROUND --- */

.floating-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.q-mark {
  position: absolute;
  font-family: var(--font-serif);
  font-weight: bold;
  font-size: clamp(2rem, 10vw, 8rem);
  color: #fff;
  opacity: 0.05; /* Very subtle against the forest green */
  user-select: none;
  animation: floatAround 20s infinite linear;
}

/* Individual positions and animation offsets */
.q-mark:nth-child(1) { top: 10%; left: 10%; animation-duration: 25s; }
.q-mark:nth-child(2) { top: 70%; left: 20%; animation-duration: 30s; animation-delay: -5s; }
.q-mark:nth-child(3) { top: 40%; left: 80%; animation-duration: 22s; animation-delay: -2s; }
.q-mark:nth-child(4) { top: 80%; left: 70%; animation-duration: 28s; animation-delay: -10s; }
.q-mark:nth-child(5) { top: 15%; left: 60%; animation-duration: 35s; }
.q-mark:nth-child(6) { top: 50%; left: 5%;  animation-duration: 20s; animation-delay: -8s; }
.q-mark:nth-child(7) { top: 90%; left: 40%; animation-duration: 32s; }
.q-mark:nth-child(8) { top: 30%; left: 35%; animation-duration: 26s; animation-delay: -4s; }

@keyframes floatAround {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -50px) rotate(10deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(-10deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

/* --- PROFILE SECTION STYLES --- */

.profile-section {
  position: relative;
  z-index: 5;
  background-color: var(--bg-color);
}

.profile-image-wrapper {
  position: relative;
  display: inline-block;
  padding: 10px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* Organic organic shape */
  animation: morphShape 15s ease-in-out infinite both alternate;
}

.profile-img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: inherit; /* Matches the wrapper shape */
  filter: grayscale(20%) contrast(1.1);
  transition: filter 0.3s ease;
}

.profile-img:hover {
  filter: grayscale(0%) contrast(1);
}

.bio-content .academic-text {
  color: var(--text-color);
  opacity: 0.9;
  line-height: 1.6;
}

/* Morphing animation for the profile container */
@keyframes morphShape {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

@media (max-width: 768px) {
  .profile-img {
    width: 200px;
    height: 200px;
  }
}


/* --- CV WEB-STYLING --- */
.cv-academic {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.cv-section-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.3rem;
  margin-bottom: 1.2rem;
  margin-top: 2rem;
}

.cv-entry strong { font-size: 1.1rem; }

.cv-academic .italic {
  font-family: var(--font-serif);
  font-style: italic;
  opacity: 0.9;
}

.academic-list {
  list-style: none;
  padding-left: 1.2rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.academic-list li {
  position: relative;
  margin-bottom: 0.25rem;
}

.academic-list li::before {
  content: "•";
  position: absolute;
  left: -1.2rem;
  color: rgba(255, 255, 255, 0.5);
}

.btn-outline-cv {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white !important;
  background: transparent;
  padding: 8px 20px;
  border-radius: 8px;
  transition: 0.2s;
}

.btn-outline-cv:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* --- DRUCK-MODUS (PDF EXPORT) --- */
@media print {
  nav, footer, .no-print, .scroll-indicator, .blob { display: none !important; }

  body, .cv-academic {
    background: white !important;
    color: black !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .cv-section-title {
    border-bottom: 1.5pt solid black !important;
    color: black !important;
  }

  .cv-entry strong, h1, h2 { color: black !important; }
  
  .academic-list li::before { color: black !important; }

  .container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
  }
}

/* --- INTEGRATED CV HEADER --- */
.cv-hero-header {
  background: var(--card-bg); /* Uses your site's translucent green/grey */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
}

.cv-contact-links .contact-item {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cv-contact-links a.contact-item:hover {
  opacity: 1;
  color: #ffffff !important;
}

.btn-outline-cv {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white !important;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-cv:hover {
  background: white;
  color: var(--bg-color) !important;
  transform: translateY(-2px);
}

/* --- PRINT REFINEMENTS --- */
@media print {
  /* Hide the glass header and button */
  .no-print, .cv-hero-header {
    display: none !important;
  }

  /* Force the d-print-block header to be visible and centered */
  .d-print-block {
    display: block !important;
    text-align: center !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .cv-section-title {
    border-bottom: 1pt solid black !important;
  }
}