/* ============================================
   SHAYNA JUCKER PORTFOLIO - STYLE.CSS
   1:1 Copy of shaynajucker.ch
   ============================================ */

/* === FONT FACES === */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap');

@font-face {
  font-family: 'ETmodules';
  src: url('../assets/fonts/modules.eot');
  src: url('../assets/fonts/modules.eot?#iefix') format('embedded-opentype'),
       url('../assets/fonts/modules.woff') format('woff'),
       url('../assets/fonts/modules.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Font Awesome 5 Brands';
  src: url('../assets/fonts/fa-brands-400.woff2') format('woff2'),
       url('../assets/fonts/fa-brands-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Font Awesome 5 Free';
  src: url('../assets/fonts/fa-solid-900.woff2') format('woff2'),
       url('../assets/fonts/fa-solid-900.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #f1f1f1;
  background-color: #2b2b2b;
  line-height: 1.7em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: #957b5f;
  transition: color 300ms ease;
}

a:hover {
  color: #c6a47e;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* === CONTAINER === */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 30px;
}

.container-wide {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 30px;
}

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 30px 0 0;
  background-color: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 30px;
}

.logo a {
  display: block;
}

.logo img {
  height: 148px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  display: flex;
  gap: 25px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #957b5f;
  transition: color 300ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #c6a47e;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: #957b5f;
  margin: 6px 0;
  transition: all 300ms ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* === HERO SECTION (HOME) === */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}

.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url('../assets/images/IMG_5265-1.jpg');
  background-size: cover;
  background-position: center top;
  z-index: -1;
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 30px 60px;
  max-width: 1080px;
  margin: 0 auto;
}

.hero-name {
  font-size: 85px;
  font-weight: 800;
  color: #957b5f;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.1em;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 500;
  color: #2b2b2b;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 5px;
}

/* === MASKED SLIDE REVEAL === */
.reveal-mask {
  display: block;
  line-height: 1.1em;
}

.reveal-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1;
  margin-right: 0.25em;
  padding-bottom: 0.12em;
}

.reveal-inner {
  display: inline-block;
  transform: translateY(105%);
  animation: reveal-slide-up 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-name .reveal-word:nth-child(1) .reveal-inner { animation-delay: 100ms; }
.hero-name .reveal-word:nth-child(2) .reveal-inner { animation-delay: 250ms; }

.hero-subtitle .reveal-word:nth-child(1) .reveal-inner { animation-delay: 500ms; }
.hero-subtitle .reveal-word:nth-child(2) .reveal-inner { animation-delay: 620ms; }
.hero-subtitle .reveal-word:nth-child(3) .reveal-inner { animation-delay: 740ms; }

@keyframes reveal-slide-up {
  to { transform: translateY(0); }
}

/* === QUOTE SECTION === */
.quote-section {
  background-color: #2b2b2b;
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

.quote-text {
  font-size: 43px;
  font-weight: 800;
  color: #957b5f;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2em;
  border-left: 3px solid #957b5f;
  padding-left: 30px;
  max-width: 1020px;
}

/* === VIDEO SECTION === */
.video-section {
  background-color: #2b2b2b;
  position: relative;
  z-index: 1;
  padding: 0;
}

.video-section video {
  width: 100%;
  height: auto;
  display: block;
}

/* === SERVICES SECTION === */
.services-section {
  background-color: #2b2b2b;
  position: relative;
  z-index: 1;
  padding: 80px 0 120px;
}

.service-item {
  display: flex;
  margin-bottom: 80px;
  align-items: flex-start;
}

.service-item:last-child {
  margin-bottom: 0;
}

.service-item.align-right {
  flex-direction: row-reverse;
}

.service-spacer {
  flex: 0 0 40%;
}

.service-content {
  flex: 0 0 60%;
}

.service-content h2 {
  font-size: 43px;
  font-weight: 800;
  color: #957b5f;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2em;
  margin-bottom: 5px;
}

.service-content p {
  font-size: 15px;
  font-weight: 500;
  color: #f1f1f1;
  line-height: 1.7em;
}

.service-content h2 + p {
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 40px;
}

.service-content h2 + p strong {
  font-weight: 500;
}

.service-content p strong {
  font-weight: 700;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 800ms ease, transform 800ms ease;
}

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

/* Service-item slide reveal */
.service-item.fade-in {
  transform: translateX(-60px) translateY(20px);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.service-item.align-right.fade-in {
  transform: translateX(60px) translateY(20px);
}

.service-item.fade-in.visible,
.service-item.align-right.fade-in.visible {
  transform: translateX(0) translateY(0);
}

.service-item.fade-in .service-content > * {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.service-item.fade-in.visible .service-content > * {
  opacity: 1;
  transform: translateY(0);
}

.service-item.fade-in.visible .service-content > *:nth-child(1) { transition-delay: 150ms; }
.service-item.fade-in.visible .service-content > *:nth-child(2) { transition-delay: 280ms; }
.service-item.fade-in.visible .service-content > *:nth-child(3) { transition-delay: 400ms; }

/* === PRE-FOOTER / BRAND SECTION === */
.brand-section {
  background-color: #f1f1f1;
  position: relative;
  z-index: 1;
  padding: 80px 0;
  border-top: 3px solid #957b5f;
}

.brand-section .brand-content {
  max-width: 720px;
}

.brand-subtitle {
  font-size: 20px;
  font-weight: 500;
  color: #2b2b2b;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.brand-name {
  font-size: 43px;
  font-weight: 800;
  color: #957b5f;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2em;
  margin-bottom: 20px;
}

.brand-tagline {
  font-size: 15px;
  font-weight: 500;
  color: #2b2b2b;
}

.social-icons {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

.social-icons a {
  font-size: 30px;
  color: #957b5f;
  transition: color 300ms ease;
}

.social-icons a:hover {
  color: #c6a47e;
}

.social-icons .fab,
.social-icons .etmodule {
  display: inline-block;
}

/* FontAwesome brand icons */
.fa-instagram::before {
  font-family: 'Font Awesome 5 Brands';
  content: '\f16d';
}

.fa-facebook-f::before {
  font-family: 'Font Awesome 5 Brands';
  content: '\f39e';
}

/* ETmodules LinkedIn icon */
.et-linkedin::before {
  font-family: 'ETmodules';
  content: '\e09d';
}

/* === FOOTER === */
.site-footer {
  background-color: #f1f1f1;
  color: #2b2b2b;
  padding: 40px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.site-footer p {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.7em;
  color: #2b2b2b;
}

.site-footer a {
  color: #2b2b2b;
  transition: color 300ms ease;
}

.site-footer a:hover {
  color: #c6a47e;
}

/* === PORTFOLIO PAGE === */
.portfolio-section {
  background-color: #2b2b2b;
  padding: 200px 0 80px;
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.portfolio-list {
  text-align: center;
}

.portfolio-item {
  margin-bottom: 60px;
}

.portfolio-item:last-child {
  margin-bottom: 0;
}

.portfolio-item a {
  font-size: 85px;
  font-weight: 800;
  color: #957b5f;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.3em;
  transition: color 300ms ease, letter-spacing 300ms ease, transform 300ms ease, text-shadow 300ms ease;
  display: inline-block;
}

.portfolio-item a:hover {
  color: #c6a47e;
  letter-spacing: 4px;
  transform: scale(1.015);
  text-shadow: 0 2px 10px rgba(198, 164, 126, 0.15);
}

/* === ABOUT PAGE === */

/* Intro / Profile Section */
.about-intro {
  background-color: #2b2b2b;
  position: relative;
  z-index: 1;
  padding: 200px 0 80px;
}

.about-intro-inner {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.about-photo {
  flex: 0 0 50%;
}

.about-photo img {
  width: 100%;
  height: auto;
}

.about-info {
  flex: 0 0 50%;
  padding-top: 20px;
}

.about-role {
  font-size: 20px;
  font-weight: 500;
  color: #f1f1f1;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.about-name {
  font-size: 43px;
  font-weight: 800;
  color: #957b5f;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2em;
  margin-bottom: 20px;
}

.about-location {
  font-size: 15px;
  font-weight: 500;
  color: #f1f1f1;
  line-height: 1.7em;
  margin-bottom: 15px;
}

.about-description {
  font-size: 15px;
  font-weight: 500;
  color: #f1f1f1;
  line-height: 1.7em;
}

.about-social {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

.about-social a {
  font-size: 30px;
  color: #957b5f;
  transition: color 300ms ease;
}

.about-social a:hover {
  color: #c6a47e;
}

/* Experience & Education */
.experience-section {
  background-color: #2b2b2b;
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.section-heading {
  font-size: 43px;
  font-weight: 800;
  color: #957b5f;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2em;
  margin-bottom: 5px;
}

.section-subheading {
  font-size: 20px;
  font-weight: 500;
  color: #f1f1f1;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 40px;
}

.timeline-image {
  display: none;
  width: 100%;
  margin-bottom: 30px;
}

/* Timeline: row-based layout so left & right always align perfectly */
.timeline {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Continuous vertical centre line */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 0.5px;
  background-color: #f1f1f1;
  transform: translateX(-50%);
  pointer-events: none;
}

/* Each paired entry */
.timeline-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 22px;
}

.timeline-row:last-child {
  margin-bottom: 0;
}

.timeline-dates {
  flex: 0 0 50%;
  text-align: right;
  padding-right: 20px;
}

.timeline-details {
  flex: 0 0 50%;
  padding-left: 20px;
}

.timeline-dates p,
.timeline-details p {
  font-size: 15px;
  color: #f1f1f1;
  line-height: 1.7em;
  margin-bottom: 0;
}

.timeline-details p {
  position: relative;
}

/* Dot sits exactly on the centre line */
.timeline-details p.has-dot::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 0.85em;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #957b5f;
}

.timeline-details p strong {
  font-weight: 700;
}

/* Gallery */
.gallery-section {
  background-color: #2b2b2b;
  position: relative;
  z-index: 1;
  padding: 80px 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-section::-webkit-scrollbar {
  display: none;
}

.gallery-slider {
  display: flex;
  gap: 0;
  width: max-content;
  will-change: scroll-position;
}

.gallery-slide {
  flex: 0 0 auto;
  height: 500px;
  overflow: hidden;
  position: relative;
  transition: transform 300ms ease, opacity 300ms ease, box-shadow 300ms ease;
}

.gallery-slide img {
  height: 500px;
  width: auto;
  display: block;
}

.gallery-slider:hover .gallery-slide {
  opacity: 0.45;
}

.gallery-slider:hover .gallery-slide:hover {
  opacity: 1;
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .gallery-slide,
  .gallery-slide img { height: 320px; }
}

/* Interests */
.interests-section {
  background-color: #2b2b2b;
  position: relative;
  z-index: 1;
  padding: 80px 0 150px;
}

.interests-content {
  display: flex;
}

.interests-spacer {
  flex: 0 0 25%;
}

.interests-text {
  flex: 0 0 75%;
}

.interests-text p {
  font-size: 15px;
  color: #f1f1f1;
  line-height: 1.7em;
}

/* === BACK TO TOP === */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #957b5f;
  color: #f1f1f1;
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: opacity 300ms ease;
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  background-color: #c6a47e;
}

/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 980px) {
  .logo img {
    height: 120px;
  }

  .hero-name {
    font-size: 60px;
  }

  .hero-content {
    padding-bottom: 40px;
  }

  .service-content h2,
  .quote-text {
    font-size: 34px;
  }

  .service-spacer {
    flex: 0 0 20%;
  }

  .service-content {
    flex: 0 0 80%;
  }

  .portfolio-item a {
    font-size: 60px;
    padding: 0 20px;
  }

  .about-intro-inner {
    flex-direction: column;
  }

  .about-photo,
  .about-info {
    flex: 0 0 100%;
  }

  /* Always hide static image, always show real timeline */
  .timeline-image {
    display: none;
  }

  .timeline {
    display: flex;
  }

  .interests-spacer {
    display: none;
  }

  .interests-text {
    flex: 0 0 100%;
  }
}

/* Phone */
@media (max-width: 767px) {

  /* --- Header --- */
  .site-header {
    padding: 12px 0 0;
  }

  .logo img {
    height: 72px;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(43, 43, 43, 0.97);
    padding: 20px 20px;
    gap: 15px;
    z-index: 999;
  }

  .main-nav ul.open {
    display: flex;
  }

  .main-nav a {
    color: #f1f1f1;
    font-size: 14px;
    letter-spacing: 2px;
  }

  .menu-toggle {
    display: block;
  }

  .container,
  .container-wide {
    padding: 0 18px;
  }

  /* --- Hero (Homepage) --- */
  .hero-section {
    min-height: 100svh;
  }

  .hero-content {
    padding: 0 18px 36px;
  }

  .hero-name {
    font-size: 30px;
    letter-spacing: 2px;
  }

  .hero-subtitle {
    font-size: 12px;
    letter-spacing: 1px;
  }

  /* --- Quote --- */
  .quote-section {
    padding: 50px 0;
  }

  .quote-text {
    font-size: 20px;
    padding-left: 18px;
    letter-spacing: 1px;
  }

  /* --- Services (kept for safety, currently removed from HTML) --- */
  .service-item,
  .service-item.align-right {
    flex-direction: column;
  }

  .service-spacer {
    display: none;
  }

  .service-content {
    flex: 0 0 100%;
  }

  .service-content h2 {
    font-size: 22px;
  }

  /* --- Portfolio page --- */
  .portfolio-section {
    padding: 140px 0 60px;
  }

  .portfolio-item a {
    font-size: 22px;
    letter-spacing: 2px;
    padding: 0;
  }

  .portfolio-item {
    margin-bottom: 30px;
  }

  /* --- About intro --- */
  .about-intro {
    padding: 110px 0 50px;
  }

  .about-intro-inner {
    flex-direction: column;
    gap: 28px;
  }

  .about-photo,
  .about-info {
    flex: 0 0 100%;
  }

  .about-name {
    font-size: 30px;
  }

  .about-role {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .about-location {
    font-size: 14px;
  }

  .about-description {
    font-size: 14px;
  }

  .about-social {
    gap: 24px;
    margin-top: 22px;
  }

  .about-social a {
    font-size: 26px;
  }

  /* --- Experience / Education headings --- */
  .experience-section {
    padding: 50px 0;
  }

  .section-heading {
    font-size: 28px;
    letter-spacing: 1px;
  }

  .section-subheading {
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 22px;
  }

  /* --- Timeline (row-based, scales down cleanly) --- */
  .timeline-image {
    display: none;
  }

  .timeline {
    display: flex;
  }

  .timeline-row {
    margin-bottom: 20px;
  }

  .timeline-dates {
    padding-right: 14px;
  }

  .timeline-details {
    padding-left: 14px;
  }

  .timeline-dates p,
  .timeline-details p {
    font-size: 13px;
    line-height: 1.65em;
    margin-bottom: 0;
  }

  .timeline-details p.has-dot::before {
    left: -19px;
    width: 9px;
    height: 9px;
    top: 0.85em;
  }

  /* --- Gallery --- */
  .gallery-section {
    padding: 50px 0;
  }

  .gallery-slide,
  .gallery-slide img {
    height: 260px;
  }

  /* --- Interests --- */
  .interests-section {
    padding: 50px 0 70px;
  }

  .interests-text p {
    font-size: 14px;
  }

  /* --- Brand / pre-footer --- */
  .brand-section {
    padding: 50px 0;
  }

  .brand-name {
    font-size: 28px;
    letter-spacing: 1px;
  }

  .brand-subtitle {
    font-size: 13px;
    letter-spacing: 1px;
  }

  .brand-tagline {
    font-size: 14px;
  }

  .social-icons {
    gap: 18px;
    margin-top: 22px;
  }

  .social-icons a {
    font-size: 26px;
  }

  /* --- Footer --- */
  .site-footer {
    padding: 30px 0;
  }

  .site-footer p {
    font-size: 13px;
  }

  /* --- Back to top --- */
  .back-to-top {
    width: 42px;
    height: 42px;
    font-size: 16px;
    bottom: 20px;
    right: 18px;
  }
}

/* Extra small phones (≤ 390px) */
@media (max-width: 390px) {
  .hero-name {
    font-size: 26px;
  }

  .section-heading {
    font-size: 24px;
  }

  .about-name {
    font-size: 26px;
  }

  .timeline-row {
    margin-bottom: 16px;
  }

  .timeline-dates {
    padding-right: 11px;
  }

  .timeline-details {
    padding-left: 11px;
  }

  .timeline-dates p,
  .timeline-details p {
    font-size: 12px;
    line-height: 1.6em;
  }

  .timeline-details p.has-dot::before {
    left: -16px;
    width: 8px;
    height: 8px;
  }
}

/* ============================================
   PORTFOLIO SUBPAGES
   ============================================ */

/* === PORTFOLIO SUBPAGE LAYOUT === */
.portfolio-subpage {
  background-color: #2b2b2b;
  padding: 180px 0 80px;
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.portfolio-subpage .page-title {
  font-size: 85px;
  font-weight: 800;
  color: #957b5f;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.3em;
  margin-bottom: 60px;
  text-align: center;
}

/* === BLURB CARDS (used in Bachelor, Architectures, Graphics, Events) === */
.blurb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.blurb-grid.single-col {
  grid-template-columns: 1fr;
  gap: 24px;
}

.blurb-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
  color: inherit;
}

/* Full image — never cropped, always responsive */
.blurb-card > img {
  width: 100%;
  height: auto;
  display: block;
}

.blurb-card .blurb-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(43, 43, 43, 0);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
  transition: background-color 400ms ease;
}

.blurb-card:hover .blurb-overlay {
  background-color: rgba(43, 43, 43, 0.72);
}

.blurb-overlay h3 {
  font-size: 43px;
  font-weight: 800;
  color: #957b5f;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2em;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.blurb-overlay p {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #f1f1f1;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.4em;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 400ms ease 100ms, transform 400ms ease 100ms;
  margin-top: 2px;
}

.blurb-card:hover .blurb-overlay h3,
.blurb-card:hover .blurb-overlay p {
  opacity: 1;
  transform: translateY(0);
}

/* === SECTION TEXT BLOCKS (used in Bachelor, Events) === */
.content-block {
  padding: 60px 0;
}

.content-block h2 {
  font-size: 43px;
  font-weight: 800;
  color: #957b5f;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2em;
  margin-bottom: 20px;
}

.content-block h3 {
  font-size: 43px;
  font-weight: 800;
  color: #957b5f;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2em;
  margin-bottom: 20px;
}

.content-block h4 {
  font-size: 20px;
  font-weight: 500;
  color: #f1f1f1;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 40px;
}

.content-block h2:has(+ h4),
.content-block h3:has(+ h4) {
  margin-bottom: 5px;
}

.content-block h4:has(+ h4) {
  margin-bottom: 5px;
}

.content-block p {
  font-size: 15px;
  font-weight: 500;
  color: #f1f1f1;
  line-height: 1.7em;
  margin-bottom: 15px;
}

.content-block .tags {
  font-size: 15px;
  color: #957b5f;
  letter-spacing: 1px;
  margin-top: 15px;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border: 2px solid #957b5f;
  border-radius: 8px;
  color: #957b5f;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 300ms ease;
  margin-right: 15px;
  margin-top: 15px;
}

.btn:hover {
  background-color: #c6a47e;
  border-color: #c6a47e;
  color: #2b2b2b;
  letter-spacing: 3px;
  transform: scale(1.015);
  box-shadow: 0 1px 4px rgba(198, 164, 126, 0.12);
}

/* === VIDEO EMBED GRID === */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.video-grid.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background-color: #2b2b2b;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-thumbnail {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.video-thumbnail .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(149, 123, 95, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 300ms ease;
}

.video-thumbnail .play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 22px;
  border-color: transparent transparent transparent #f1f1f1;
  margin-left: 4px;
}

.video-thumbnail:hover .play-btn {
  background: rgba(198, 164, 126, 0.95);
}

/* YouTube click-to-play (no branding) */
.video-wrapper.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.video-wrapper.video-thumbnail:hover img {
  transform: scale(1.04);
  filter: brightness(0.9);
}

.video-wrapper.video-thumbnail.playing {
  cursor: default;
}

.video-wrapper.video-thumbnail.playing::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 50px;
  background-color: #2b2b2b;
  pointer-events: none;
  z-index: 2;
}

/* === PHOTO GALLERY GRID === */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.photo-gallery.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.photo-gallery.cols-6 {
  grid-template-columns: repeat(6, 1fr);
}

.photo-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: opacity 300ms ease;
}

.photo-gallery img:hover {
  opacity: 0.8;
}

/* Section heading for photo groups */
.photo-group-title {
  font-size: 43px;
  font-weight: 800;
  color: #957b5f;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2em;
  text-align: center;
  margin: 60px 0 30px;
}

/* === AUDIO PLAYER === */
.audio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.audio-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.audio-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.audio-item {
  background-color: #2b2b2b;
  padding: 15px;
  border-radius: 4px;
}

.audio-item .audio-title {
  font-size: 15px;
  font-weight: 600;
  color: #f1f1f1;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.4;
}

.audio-item audio {
  width: 100%;
  height: 32px;
}

.audio-section-img {
  width: 100%;
  max-width: 640px;
  margin: 20px auto;
  display: block;
}

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 43px;
  color: #f1f1f1;
  cursor: pointer;
  line-height: 1;
}

/* === MOTIVATION LETTER (Bewerbung page) === */
.motivation-lead {
  font-size: 20px;
  font-weight: 500;
  color: #f1f1f1;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.4em;
  margin-bottom: 40px;
}

.motivation-lead strong {
  color: #957b5f;
  font-weight: 500;
}

.motivation-body {
  margin-left: 25%;
}

.motivation-body p {
  font-size: 15px;
  font-weight: 500;
  color: #f1f1f1;
  line-height: 1.7em;
  margin-bottom: 18px;
}

.motivation-body p:last-child {
  margin-bottom: 0;
}

.motivation-body strong {
  color: #957b5f;
  font-weight: 700;
}

@media (max-width: 980px) {
  .motivation-body {
    margin-left: 0;
  }
}

/* === SKILLS BLOCKS (Bewerbung page) === */
.skills-block {
  max-width: 600px;
  margin: 0 auto 50px;
  text-align: center;
}

.skills-block:last-child {
  margin-bottom: 0;
}

.skills-category {
  font-size: 20px;
  font-weight: 800;
  color: #f1f1f1;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2em;
  margin-bottom: 25px;
  text-align: center;
}

.skill-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  margin-bottom: 14px;
  border: 2px solid #957b5f;
  border-radius: 4px;
  background-color: transparent;
  cursor: default;
  overflow: hidden;
  transition: background-color 300ms ease, border-color 300ms ease;
}

.skill-item:last-child {
  margin-bottom: 0;
}

.skill-item span {
  font-size: 14px;
  font-weight: 600;
  color: #957b5f;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.3em;
  text-align: center;
  transition: opacity 300ms ease, transform 300ms ease;
}

.skill-item::after {
  content: attr(data-level);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #f1f1f1;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms ease, transform 300ms ease;
  padding: 12px 20px;
  text-align: center;
}

.skill-item:hover {
  background-color: #957b5f;
  border-color: #957b5f;
}

.skill-item:hover span {
  opacity: 0;
  transform: translateY(-8px);
}

.skill-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Certificates action wrapper */
.certificates-actions {
  margin-top: 10px;
  text-align: left;
}

@media (max-width: 767px) {
  .skills-block {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .skills-category {
    font-size: 18px;
  }
}

/* === RESPONSIVE PORTFOLIO SUBPAGES === */
@media (max-width: 980px) {
  .portfolio-subpage .page-title {
    font-size: 60px;
  }

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

  .photo-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-gallery.cols-6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .audio-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .video-grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .content-block h2 {
    font-size: 34px;
  }
}

@media (max-width: 767px) {
  .portfolio-subpage {
    padding: 140px 0 60px;
  }

  .portfolio-subpage .page-title {
    font-size: 25px;
    letter-spacing: 2px;
  }

  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-gallery.cols-6 {
    grid-template-columns: repeat(2, 1fr);
  }

  .audio-grid,
  .audio-grid.cols-3,
  .audio-grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .blurb-card {
    height: 400px;
  }

  .content-block h2 {
    font-size: 26px;
  }

  .content-block h3 {
    font-size: 22px;
  }
}
}
