/* ===================================
   Homepage Styles
   Overrides and extensions for index.html using Lumen template
   =================================== */

/* ==================
   Fix body overflow for scrolling
   ================== */
html {
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable; /* no sideways jump when the project window locks scrolling */
}

body {
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
}

body.lumen.top-header {
  --top-header-offset: 60px;
  position: relative;
  padding-top: var(--top-header-offset);
}

/* ==================
   Top Header Layout - Glassmorphism Sticky Nav
   ================== */
.top-header #main-wrapper {
  background: var(--lmn-color-bg);
  min-height: 100vh;
  width: 100%;
}

.top-header #header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  transition: all 0.3s ease;
}

.top-header .primary-menu {
  background: rgba(10, 6, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(227, 138, 58, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  padding: 0.5rem 0;
  transition: all var(--lmn-transition);
}

/* Logo & Brand Styling */
.top-header .navbar-brand {
  padding: 0;
  margin: 0;
  font-size: 1rem;
  text-decoration: none;
  transition: opacity var(--lmn-transition);
}

.top-header .navbar-brand:hover {
  opacity: 0.9;
}

.top-header .top-logo-wrap {
  width: 38px;
  height: 38px;
  padding: 3px;
  background: var(--lmn-color-surface);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-header .top-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-header .top-brand {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.top-header .top-brand-sub {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-left: 0.25rem;
}

/* Navigation Links */
.top-header .navbar-nav {
  gap: 0.5rem;
}

.top-header .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.375rem 1rem;
  transition: color var(--lmn-transition);
}

.top-header .navbar-nav .nav-link:hover {
  color: var(--lmn-color-text);
}

.top-header .navbar-nav .nav-link.active {
  color: var(--lmn-color-accent-primary) !important;
}

.nav-link-off{
  color: rgba(255, 255, 255, 0.2) !important;
  margin-bottom:-10px;
  justify-content: center;
  text-align: center;
}


/* Social Icons in Top Nav */
.top-header .social-icons {
  margin-left: 1.5rem;
  gap: 0.75rem;
}

.top-header .social-icons li a {
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--lmn-transition);
}

.top-header .social-icons li a:hover {
  background: rgba(227, 138, 58, 0.15);
  transform: translateY(-2px);
}

/* Anchor hero text block lower in viewport */
.hero-content .container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: calc(100vh - var(--top-header-offset));
  min-height: calc(100svh - var(--top-header-offset));
  box-sizing: border-box;
  padding-bottom: clamp(3.5rem, 12vh, 8rem);
}

.hero-content .row {
  width: 100%;
  justify-content: center;
}

/* Hide Typed.js source strings to prevent pre-init text flash. */
.typed-strings {
  display: none;
}

/* ==================
   Homepage Sections
   ================== */
.section {
  padding: 80px 0;
  position: relative;
}

/* Footer uses standardized height instead of section padding */
.footer-height.section {
  padding: 0;
}

.footer-height.section .container {
  padding-top: 0;
  padding-bottom: 0;
}

.bg-dark-1 {
  background: var(--lmn-color-bg);
}

.bg-dark-2 {
  background: var(--lmn-color-surface);
}

/* ==================
   Hero Section
   ================== */
.hero-wrap {
  position: relative;
  min-height: calc(100vh - var(--top-header-offset));
  min-height: calc(100svh - var(--top-header-offset));
  display: flex;
  align-items: center;
  overflow: hidden;
}

#home {
  margin-top: calc(-1 * var(--top-header-offset));
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 6, 5, 0.9) 0%, rgba(18, 12, 8, 0.85) 50%, rgba(42, 28, 20, 0.75) 100%);
  z-index: 1;
}

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

.hero-logo-fallback {
  display: none;
  width: clamp(150px, 250vw, 290px);
  height: auto;
  margin: 0 auto 1rem;
  opacity: 0.94;
}

body.no-webgl .hero-logo-fallback {
  display: block;
}

body.has-webgl-logo .hero-logo-fallback {
  display: none !important;
}

.hero-3d-notice {
  display: none;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.03em;
  margin: 0 auto 0.75rem;
}

body.no-webgl .hero-3d-notice {
  display: block;
}

body.has-webgl-logo .hero-3d-notice {
  display: none !important;
}

#lab4d-three-logo-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 7;
}

/* Section-synced ambient color wash — sits behind the 3D logo overlay,
   in front of section backgrounds. Color/opacity are driven per-frame
   from js/3dlogo.js via CSS custom properties. */
#lab4d-color-wash {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: var(--wash-opacity, 0.35);
  background: radial-gradient(circle at 50% 30%, var(--wash-color, #f08f22) 0%, transparent 65%);
}

#content > section {
  position: relative;
}

#content > section > .container,
#content > section .hero-content {
  position: relative;
  z-index: 10;
}

/* Center hero text */
.hero-content .text-center {
  text-align: center !important;
}

/* ==================
   Typography
   ================== */
.text-white {
  color: var(--lmn-color-text) !important;
}

.text-light,
.text-white-50 {
  color: var(--lmn-color-text-muted) !important;
}

.text-primary {
  color: var(--lmn-color-accent-secondary) !important;
}

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

/* ==================
   Text Size Utilities (restore original scale)
   ================== */
.text-4 {
  font-size: 18px !important;
  font-size: 1.125rem !important;
}

.text-5 {
  font-size: 21px !important;
  font-size: 1.3125rem !important;
}

.text-7 {
  font-size: 28px !important;
  font-size: 1.75rem !important;
}

.text-9 {
  font-size: 36px !important;
  font-size: 2.25rem !important;
}

.text-12 {
  font-size: calc(1.425rem + 2.1vw) !important;
}

@media (min-width: 1200px) {
  .text-12 {
    font-size: 3rem !important;
  }
}

.text-16 {
  font-size: calc(1.525rem + 3.3vw) !important;
}

@media (min-width: 1200px) {
  .text-16 {
    font-size: 4rem !important;
  }
}

.text-24 {
  font-size: calc(1.95rem + 8.4vw) !important;
}

@media (min-width: 1200px) {
  .text-24 {
    font-size: 8.25rem !important;
  }
}

.text-12, .text-16, .text-24 {
  line-height: 1.3;
}

/* ==================
   Section Headings
   ================== */
.position-relative.d-flex.text-center h2.text-24 {
  color: var(--lmn-color-text-muted);
  opacity: 0.3;
}

.position-relative.d-flex.text-center p.text-9 {
  color: var(--lmn-color-text);
}

#about .about-content-panel {
  background: var(--lmn-color-frame-bg);
  border: 1px solid var(--lmn-color-border-soft);
  border-radius: var(--lmn-radius);
  padding: 1.75rem;
}

.heading-separator-line {
  border-color: var(--lmn-color-accent-secondary) !important;
  width: 50px;
  opacity: 1;
}

/* ==================
   Buttons
   ================== */
.btn-primary {
  --bs-btn-color: var(--lmn-color-bg);
  --bs-btn-bg: var(--lmn-color-accent-secondary);
  --bs-btn-border-color: var(--lmn-color-accent-secondary);
  --bs-btn-hover-color: var(--lmn-color-bg);
  --bs-btn-hover-bg: var(--lmn-color-accent-primary);
  --bs-btn-hover-border-color: var(--lmn-color-accent-primary);
  --bs-btn-active-color: var(--lmn-color-bg);
  --bs-btn-active-bg: var(--lmn-color-accent-secondary);
  --bs-btn-active-border-color: var(--lmn-color-accent-secondary);
  background: var(--lmn-color-accent-secondary);
  border-color: var(--lmn-color-accent-secondary);
  color: var(--lmn-color-bg);
  transition: all var(--lmn-transition);
}

.badge.bg-primary {
  --bs-badge-color: var(--lmn-color-bg);
  --bs-badge-bg: var(--lmn-color-accent-secondary);
  background: var(--lmn-color-accent-secondary) !important;
  color: var(--lmn-color-bg) !important;
  border: 1px solid var(--lmn-color-accent-secondary);
}

.btn-primary:hover {
  background: var(--lmn-color-accent-primary);
  border-color: var(--lmn-color-accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(197, 91, 31, 0.4);
}

.btn-outline-secondary {
  border-color: var(--lmn-color-border-mid);
  color: var(--lmn-color-text);
  background: transparent;
}

.btn-outline-secondary:hover {
  background: var(--lmn-color-accent-secondary);
  border-color: var(--lmn-color-accent-secondary);
  color: var(--lmn-color-bg);
}

.hero-scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: 42px;
  height: 102px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(227, 138, 58, 0.75);
  border-radius: 999px;
  background: rgba(10, 6, 5, 0.22);
  color: var(--lmn-color-accent-secondary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  z-index: 11;
}

.hero-scroll-icon {
  width: 24px;
  height: 64px;
  overflow: visible;
}

.hero-scroll-chevron {
  fill: currentColor;
  fill-opacity: 0;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linejoin: round;
  animation: hero-chevron-fill 2.4s infinite ease-in-out;
}

.hero-scroll-chevron.chevron-2 {
  animation-delay: 0.2s;
}

.hero-scroll-chevron.chevron-3 {
  animation-delay: 0.4s;
}

.hero-scroll-chevron.chevron-4 {
  animation-delay: 0.6s;
}

@keyframes hero-chevron-fill {
  0%, 100% {
    fill-opacity: 0;
  }

  16% {
    fill-opacity: 0;
  }

  28% {
    fill-opacity: 0.95;
  }

  40% {
    fill-opacity: 0.2;
  }

  52% {
    fill-opacity: 0;
  }
}

/* ==================
   Social Icons
   ================== */
.social-icons {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  gap: 8px;
}

.social-icons li {
  margin: 2px 6px;
  padding: 0;
  overflow: visible;
}

.social-icons li a {
  display: block;
  height: 26px;
  line-height: 26px;
  width: 26px;
  font-size: 18px;
  text-align: center;
  color: var(--lmn-color-text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-icons li i {
  line-height: inherit;
}

.social-icons.social-icons-sm li {
  margin: 2px 4px;
}

.social-icons.social-icons-sm li a {
  font-size: 14px;
}

.social-icons.social-icons-muted li a {
  color: var(--lmn-color-text-muted);
}

.social-icons li:hover a {
  color: var(--lmn-color-accent-secondary);
}

#contact .social-icons {
  justify-content: flex-start;
  margin: 0;
  padding-left: 0;
  gap: 12px;
}

#contact .social-icons li {
  margin: 2px 0;
}

/* ==================
   Portfolio Grid
   ================== */
.portfolio-box {
  background: var(--lmn-color-frame-bg);
  border: 1px solid var(--lmn-color-border-soft);
  border-radius: var(--lmn-radius);
  overflow: hidden;
  transition: all var(--lmn-transition);
  position: relative;
}

.portfolio-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(197, 91, 31, 0.3);
  border-color: var(--lmn-color-accent-secondary);
}

.portfolio-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--lmn-transition);
}

.portfolio-box:hover .portfolio-img img {
  transform: scale(1.05);
}

.portfolio-overlay-details {
  padding: 0.75rem 1.25rem;
  background: rgba(42, 28, 20, 0.75);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(227, 138, 58, 0.25);
  transition: all var(--lmn-transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}

.portfolio-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.portfolio-box:hover .portfolio-overlay-details {
  background: rgba(42, 28, 20, 0.85);
  border-top-color: rgba(227, 138, 58, 0.4);
}

.portfolio-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--lmn-color-accent-secondary);
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portfolio-year {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--lmn-color-text);
  margin: 0;
  white-space: nowrap;
}

.portfolio-category {
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(247, 242, 236, 0.7);
  margin: 0;
  white-space: nowrap;
  text-transform: capitalize;
}

/* ==================
   Navigation
   ================== */
#header .navbar {
  background: rgba(10, 6, 5, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(227, 138, 58, 0.15) !important;
}

.nav-link {
  color: #8a96a8;
  transition: color var(--lmn-transition);
}

.nav-link:hover,
.nav-link:focus {
  color: #e2e8f0;
}

.nav-link.active {
  color: var(--lmn-color-accent-secondary) !important;
}

.nav-link:focus:not(:focus-visible) {
  color: #8a96a8;
}

/* ==================
   Stats/Counter Boxes
   ================== */
.featured-box {
  padding: 20px;
  background: var(--lmn-color-frame-bg);
  border-radius: var(--lmn-radius);
  border: 1px solid var(--lmn-color-border-soft);
  transition: all var(--lmn-transition);
}

.featured-box:hover {
  border-color: var(--lmn-color-accent-secondary);
  transform: translateY(-4px);
}

.counter {
  color: var(--lmn-color-accent-secondary) !important;
  font-weight: 700;
}

/* ==================
   Services Cards ("What I Do")
   ================== */
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 2.25rem 1.75rem 2rem;
  text-align: center;
  background: var(--lmn-color-frame-bg);
  border: 1px solid var(--lmn-color-border-soft);
  border-radius: var(--lmn-radius);
  transition: border-color var(--lmn-transition), transform var(--lmn-transition), box-shadow var(--lmn-transition);
}

.service-card:hover {
  border-color: var(--lmn-color-border-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px var(--lmn-color-shadow), 0 0 0 1px var(--lmn-color-accent-glow);
}

.service-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1.25rem;
  font-size: 1.9rem;
  color: var(--lmn-color-accent-secondary);
  background: var(--lmn-color-link-fill);
  border: 1px solid var(--lmn-color-border-accent);
  border-radius: 18px;
  transition: background var(--lmn-transition), color var(--lmn-transition), transform var(--lmn-transition);
}

.service-card:hover .service-card-icon {
  color: var(--lmn-color-bg);
  background: linear-gradient(135deg, var(--lmn-color-accent-secondary), var(--lmn-color-accent-primary));
  transform: scale(1.05);
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--lmn-color-text);
}

.service-card p {
  max-width: 34ch;
  margin: 0;
  line-height: 1.65;
  color: var(--lmn-color-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card-icon {
    transition: none;
  }
  .service-card:hover,
  .service-card:hover .service-card-icon {
    transform: none;
  }
}

/* ==================
   Cards & Borders
   ================== */
.rounded {
  border-radius: var(--lmn-radius) !important;
}

.separator-border {
  border-color: var(--lmn-color-border-soft) !important;
}

/* ==================
   Forms
   ================== */
#contact-form {
  border: 2px solid var(--lmn-color-accent-primary);
  border-radius: var(--lmn-radius-md);
  padding: 2rem;
  background: rgba(18, 12, 8, 0.3);
}

.form-control {
  background: var(--lmn-color-frame-bg);
  border: 2px solid rgba(227, 138, 58, 0.3);
  color: var(--lmn-color-text);
  border-radius: var(--lmn-radius-sm);
}

.form-control:focus {
  background: var(--lmn-color-frame-bg);
  border-color: var(--lmn-color-accent-primary);
  color: var(--lmn-color-text);
  box-shadow: 0 0 0 0.2rem rgba(197, 91, 31, 0.25);
}

/* Spam trap field: kept off-screen for people, still filled in by bots */
.hp-field {
  position: absolute;
  left: -5000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Ensure textarea aligns with name/email row width */
#contact-form textarea.form-control {
  width: 100%;
  box-sizing: border-box;
}

/* ==================
   Progress Bars
   ================== */
.progress {
  background: var(--lmn-color-frame-bg);
  border-radius: var(--lmn-radius-sm);
}

.progress-bar {
  background: linear-gradient(90deg, var(--lmn-color-accent-secondary), var(--lmn-color-accent-primary));
}

/* ==================
   Footer
   ================== */
.footer {
  background: var(--lmn-color-surface);
  border-top: 1px solid var(--lmn-color-border-soft);
}

/* ==================
   Project Preview Modal
   ================== */
/* While a project is open, freeze the page behind it. <html> is the homepage's
   scrolling element, so the lock goes there. */
html.project-preview-open {
  overflow: hidden;
}

.project-preview-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  overscroll-behavior: contain; /* wheel/touch scrolls never chain to the page behind */
}

.project-preview-modal.is-open {
  display: block;
}

.project-preview-shell {
  position: absolute;
  inset: 0;
}

.project-preview-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.project-preview-controls {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-preview-close,
.project-preview-arrow {
  border: 1px solid var(--lmn-color-border-accent);
  color: var(--lmn-color-accent-primary);
  background: rgba(18, 12, 8, 0.72);
  cursor: pointer;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.project-preview-close:hover,
.project-preview-arrow:hover {
  background: rgba(18, 12, 8, 0.92);
  transform: translateY(-1px);
}

.project-preview-close {
  font-size: 22px;
  line-height: 1;
}

.project-preview-arrow {
  font-size: 16px;
}

@media (max-width: 575.98px) {
  .project-preview-controls {
    top: 10px;
    right: 10px;
  }

  .project-preview-close,
  .project-preview-arrow {
    width: 36px;
    height: 36px;
  }
}

/* ==================
   Hamburger Menu Toggle
   ================== */
.top-header .navbar-toggler {
  border: none;
  padding: 0.5rem;
  background: transparent;
  width: 40px;
  height: 40px;
  position: relative;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  transition: all var(--lmn-transition);
}

.top-header .navbar-toggler:focus {
  box-shadow: none;
  outline: 2px solid rgba(227, 138, 58, 0.3);
  outline-offset: 2px;
}

.top-header .navbar-toggler span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--lmn-color-accent-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.top-header .navbar-toggler[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.top-header .navbar-toggler[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.top-header .navbar-toggler[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==================
   Responsive / Mobile Styles
   ================== */
@media (max-width: 991.98px) {
  body.lumen.top-header {
    --top-header-offset: 52px;
    padding-top: var(--top-header-offset);
  }

  .hero-wrap {
    min-height: calc(100vh - var(--top-header-offset));
    min-height: calc(100svh - var(--top-header-offset));
  }

  .hero-content .container {
    min-height: calc(100vh - var(--top-header-offset));
    min-height: calc(100svh - var(--top-header-offset));
  }

  .hero-content .container {
    padding-bottom: clamp(4rem, 13vh, 6.5rem);
  }

  .hero-scroll-indicator {
    width: 58px;
    height: 116px;
    bottom: 24px;
  }

  .hero-scroll-icon {
    width: 22px;
    height: 58px;
  }

  .top-header .primary-menu {
    padding: 0.4rem 0;
  }

  .top-header .top-brand {
    font-size: 1rem;
  }

  .top-header .top-brand-sub {
    font-size: 0.65rem;
  }

  .top-header .top-logo-wrap {
    width: 34px;
    height: 34px;
  }

  .top-header .navbar-collapse {
    background: rgba(10, 6, 5, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(227, 138, 58, 0.15);
    margin-top: 0.75rem;
    padding: 1rem 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  }

  .top-header .navbar-nav {
    flex-direction: column;
    gap: 0;
    margin-bottom: 1rem;
  }

  .top-header .navbar-nav .nav-link {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    text-align: left;
  }

  .top-header .navbar-nav .nav-link::after {
    left: 1.5rem;
    transform: translateX(0) scaleX(0);
    width: calc(100% - 3rem);
  }

  .top-header .navbar-nav .nav-link.active::after,
  .top-header .navbar-nav .nav-link:hover::after {
    transform: translateX(0) scaleX(1);
  }

  .top-header .social-icons {
    justify-content: center;
    margin: 0;
    padding: 1rem 0 0.5rem;
    border-top: 1px solid rgba(227, 138, 58, 0.1);
  }
}

@media (max-width: 575.98px) {
  body.lumen.top-header {
    --top-header-offset: 49px;
    padding-top: var(--top-header-offset);
  }

  .hero-wrap {
    min-height: calc(100vh - var(--top-header-offset));
    min-height: calc(100svh - var(--top-header-offset));
  }

  .hero-content .container {
    min-height: calc(100vh - var(--top-header-offset));
    min-height: calc(100svh - var(--top-header-offset));
  }

  .hero-content .container {
    padding-bottom: clamp(4.5rem, 14vh, 7rem);
  }

  .hero-scroll-indicator {
    width: 52px;
    height: 104px;
    bottom: 28px;
  }

  .hero-scroll-icon {
    width: 20px;
    height: 52px;
  }

  .top-header .top-brand {
    font-size: 0.9rem;
  }

  .top-header .top-brand-sub {
    display: block;
    font-size: 0.6rem;
    margin-left: 0;
    margin-top: 0.1rem;
  }

  .top-header .top-logo-wrap {
    width: 30px;
    height: 30px;
    margin-right: 0.5rem;
  }

  .top-header .navbar-nav .nav-link {
    font-size: 0.95rem;
    padding: 0.65rem 1rem;
  }
}

/* ==================
   Portfolio Category Buttons - Admin Style
   ================== */
.portfolio-menu.nav-tabs {
  border-bottom: 0;
  gap: 0.75rem;
}

.portfolio-menu .nav-item {
  margin: 0;
}

.portfolio-menu .nav-link {
  padding: 10px 20px;
  background: rgba(197, 91, 31, 0.12);
  border: 1px solid var(--lmn-color-accent-secondary);
  border-radius: var(--lmn-radius-sm);
  color: var(--lmn-color-accent-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--lmn-transition);
  cursor: pointer;
}

.portfolio-menu .nav-link:hover {
  background: rgba(227, 138, 58, 0.2);
  border-color: var(--lmn-color-accent-secondary);
  color: var(--lmn-color-accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(197, 91, 31, 0.25);
}

.portfolio-menu .nav-link.active {
  background: var(--lmn-color-accent-primary);
  border-color: var(--lmn-color-accent-primary);
  color: var(--lmn-color-text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(197, 91, 31, 0.4);
}

/* ==================
   Research Gallery
   ================== */
.research-gallery {
  align-items: stretch;
}

.research-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(227, 138, 58, 0.24);
  background: linear-gradient(165deg, rgba(18, 12, 8, 0.86) 0%, rgba(42, 28, 20, 0.72) 100%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

.research-card-media {
  position: relative;
  overflow: hidden;
}

.research-card-media img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  max-height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.research-item-featured .research-card-media img {
  min-height: 300px;
  max-height: 440px;
}

.research-card:hover .research-card-media img {
  transform: scale(1.04);
}

.research-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.2rem 1.2rem 1.15rem;
}

.research-card-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lmn-color-accent-secondary);
}

.research-card-title {
  font-size: 1.35rem;
  line-height: 1.2;
}

.research-item-featured .research-card-title {
  font-size: clamp(1.55rem, 2.2vw, 2rem);
}

.research-card-description {
  font-size: 0.96rem;
  line-height: 1.55;
}

.research-empty {
  opacity: 0.85;
}

@media (max-width: 991.98px) {
  .research-item-featured .research-card-media img {
    min-height: 240px;
    max-height: 320px;
  }

  .research-card-title,
  .research-item-featured .research-card-title {
    font-size: 1.28rem;
  }
}

@media (max-width: 575.98px) {
  .research-card-media img {
    min-height: 190px;
    max-height: 260px;
  }

  .research-card-body {
    padding: 1rem;
  }
}

/* ==================
   No-Cookie Notice
   ================== */
#no-cookie-notice {
  position: fixed;
  bottom: 12px;
  right: 12px;
  left: auto;
  transform: none;
  width: 40%;
  max-width: 400px;
  background: rgba(30, 30, 30, 0.92);
  color: #ccc;
  font-size: 13px;
  line-height: 1.35;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0;
  padding: 1.35em 106px 1.35em 20px;
  min-height: calc(4 * 1.35em + 2 * 1.35em);
  border-radius: 6px;
  z-index: 99999;
  white-space: normal;
  opacity: 1;
  transition: opacity 0.4s ease;
  cursor: pointer;
}

#no-cookie-notice span {
  display: block;
  flex: 1 1 auto;
  width: auto;
}

#no-cookie-notice img {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 34px;
  width: auto;
  height: 100%;
  max-width: 72px;
  object-fit: contain;
}

#no-cookie-notice.hide {
  opacity: 0;
  pointer-events: none;
}

#no-cookie-close {
  position: absolute;
  top: 8px;
  right: 10px;
  color: #999;
  font-size: 18px;
  line-height: 1;
  padding: 0 4px;
  pointer-events: none;
  user-select: none;
}

#no-cookie-close:hover {
  color: #fff;
}

/* Bootstrap button states normalization:
   keep focus/active from switching to Bootstrap default blue. */
.btn {
  --bs-btn-active-color: var(--bs-btn-color);
  --bs-btn-active-bg: var(--bs-btn-bg);
  --bs-btn-active-border-color: var(--bs-btn-border-color);
}

.btn:focus,
.btn:focus-visible,
.btn:active,
.btn.active {
  outline: none;
  box-shadow: none;
}
