:root {
    --primary: #4ca883;
    --dark: #00204E;
    --accent: #D4AF37;
    --bg: #0a0a0a;
}

body {
    background-color: var(--bg);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

.mono { font-family: 'Space Mono', monospace; font-size: 0.8rem; letter-spacing: 2px; }

.lab-logo-mark {
    background: var(--primary);
    color: white;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 8px;
}

/* Update these lines to match your actual .jpg files */
/* Update the Hero background */
/* Update the Hero background extension to .jpg */
.hero-v2 {
    background: url('assets/hero-protein.jpg') center/cover no-repeat fixed;
}

/* Ensure the link covers the whole grid area */
a.research-item {
    display: block;
    color: inherit;
}

/* Maintain white text on hover */
a.research-item:hover {
    color: white;
}

/* Smooth scrolling for the whole site */
html {
    scroll-behavior: smooth;
}

/* Offset to account for the fixed navbar so it doesn't cover the titles */
#ai-design, #biosensing-tech, #micro-tech {
    scroll-margin-top: 100px;
}

/* Update the Research Pillar image extensions to .jpg */
.research-item:nth-child(1) {
    background-image: url('assets/protein.png');
}

.research-item:nth-child(2) {
    background-image: url('assets/biosense.png');
}

/* Use the exact spelling from your folder: 'fludics' */
.research-item:nth-child(3) {
    background-image: url('assets/fludics.png');
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 10, 10, 1) 20%, rgba(10, 10, 10, 0.4) 100%);
}

.text-gradient {
    background: linear-gradient(45deg, var(--primary), #9be3c3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Bento-style Research Grid */
.research-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 350px 350px;
    gap: 24px;
}

.research-item {
    position: relative;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
}

.research-item.large { grid-row: span 2; }

.research-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(10, 10, 10, 1) 0%, transparent 100%);
}

.research-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* Button & Badge Styles */
.btn-primary-custom {
    background: var(--primary);
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
}

.badge-lab {
    background: rgba(76, 168, 131, 0.2);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 50px;
    display: inline-block;
}

/* Reveal Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: 1s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Prevents fixed navbar from covering section titles when jumping to IDs */
#ai-design, #biosensing-tech, #micro-tech {
    scroll-margin-top: 120px;
}

/* Extra spacing for a high-end lab feel */
.mb-huge {
    margin-bottom: 10rem !important;
}

/* Animation for the images on the research page */
.img-fluid.rounded-4 {
    transition: transform 0.5s ease;
}

.img-fluid.rounded-4:hover {
    transform: scale(1.02);
}

/* Optional: nicer serif headline font */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&display=swap');

.pub-hero{
  position: relative;
  isolation: isolate;
  min-height: 340px;
  display: flex;
  align-items: center;
  padding: 5.5rem 0 4.5rem;
  background: #efe6cf;          /* warm beige */
  overflow: hidden;
}

/* If you have ONE hero image like the screenshot, easiest option:
   export it as assets/publications-hero.png and uncomment below. */
/*
.pub-hero{
  background: url("assets/publications-hero.png") center/cover no-repeat;
}
.pub-hero::before{
  content:"";
  position:absolute; inset:0;
  background: rgba(239,230,207,0.35);  // soft overlay so text stays readable
  z-index:-1;
}
*/

.pub-hero::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(900px 280px at 50% 65%, rgba(255,255,255,0.55), transparent 60%);
  z-index:-1;
}

/* Decorative left/right ornaments (use your own assets) */
.pub-hero .orn-left,
.pub-hero .orn-right{ display:none; } /* if you don’t have assets yet */

.pub-hero::marker{ content:""; } /* harmless */

.pub-hero-inner{
  position: relative;
  z-index: 2;
}

.pub-hero-kicker{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: #c58b4c;
  opacity: .9;
}
.pub-hero-kicker .line{
  width: 92px;
  height: 2px;
  background: #c58b4c;
  border-radius: 2px;
}
.pub-hero-kicker .diamond{
  font-size: 0.85rem;
  transform: translateY(-1px);
}

.pub-hero-title{
  font-family: "Playfair Display", serif;
  letter-spacing: 0.02em;
  color: #6e7a56;              /* muted olive like screenshot */
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.05;
  font-size: clamp(2.2rem, 4.4vw, 4.2rem);
  margin: 0 0 1.4rem;
}
.pub-hero-title .thin{
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
  opacity: .95;
}

.pub-hero-btn{
  border: 2px solid #b45a3c;
  color: #b45a3c;
  background: transparent;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.pub-hero-btn:hover{
  transform: translateY(-2px);
  background: rgba(180,90,60,0.08);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
  color: #b45a3c;
}

.pub-hero-chevron{
  width: 14px;
  height: 14px;
  margin: 1.75rem auto 0;
  border-right: 3px solid #c58b4c;
  border-bottom: 3px solid #c58b4c;
  transform: rotate(45deg);
  opacity: .8;
}

/* Make your publication section feel a bit more “designed” */
section.py-5.bg-light{
  background: #f6f4ef !important;
}
h4.text-green{
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
  color: #2f5b46 !important;
}

/* Optional: slightly nicer cards */
.pub-card{
  border: 1px solid rgba(0,0,0,0.06);
}

/* Color Palette */
:root{
  --museum-beige: #000000;   /* cooler stone */
  --museum-olive: #3b8132;   /* deeper sage */
  --museum-gold:  #3f704d;   /* less yellow */
  --museum-brick: #01796f;   /* slightly muted */
  --archive-bg:   #f3f2ee;   /* clean paper */
}

/* Updated Hero styling */
.pub-hero {
    background: var(--museum-beige);
    padding: 8rem 0 6rem;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.pub-hero-title {
    font-family: "Playfair Display", serif;
    color: var(--museum-olive);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    text-transform: uppercase;
    font-weight: 800;
}

/* Year Divider Styling */
.year-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 4rem 0 2rem;
}

.year-text {
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    color: var(--museum-gold);
    font-size: 1.5rem;
}

.year-line {
    flex-grow: 1;
    height: 1px;
    background: rgba(0,0,0,0.1);
}

/* Modern Archive Cards */
.pub-card-modern {
    background: #fbfbfa;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.pub-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--museum-olive);
}

.pub-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--museum-gold);
    background: rgba(197, 139, 76, 0.1);
    padding: 4px 12px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 1rem;
}

.pub-title-link {
    display: block;
    font-weight: 700;
    color: #2f5b46;
    text-decoration: none;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.pub-authors {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

.btn-circle {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--museum-brick);
    font-size: 1.5rem;
    transition: all 0.3s;
}

.pub-card-modern:hover .btn-circle {
    background: var(--museum-brick);
    color: white;
    border-color: var(--museum-brick);
}

/* PI Image Styling */
.pi-image-wrapper {
    flex-shrink: 0;
    margin-right: 3rem;
}

.pi-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 24px;
    border: 2px solid var(--primary);
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.2);
}

/* PI Spotlight Styling */
.member-card-large {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 3.5rem;
    backdrop-filter: blur(15px);
}

.pi-image-wrapper {
    flex-shrink: 0;
    margin-right: 3.5rem;
}

.pi-photo {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 28px;
    border: 2px solid var(--primary);
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.2);
}

/* Lab Member Card (Initial Avatar Style) */
.member-card-fancy {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.4s ease;
}

.member-card-fancy:hover {
    border-color: var(--primary);
    background: rgba(74, 222, 128, 0.05);
    transform: translateY(-10px);
}

.member-avatar {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Mono', monospace;
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.member-name { font-weight: 600; color: #fff; margin-bottom: 0.25rem; }
.member-role { color: var(--primary); font-family: 'Space Mono', monospace; font-size: 0.75rem; text-transform: uppercase; display: block; margin-bottom: 1rem; }
.member-email { color: #9ca3af; text-decoration: none; font-size: 0.8rem; }
.member-email:hover { color: var(--primary); text-decoration: underline; }

/* Responsive Adjustments */
@media (max-width: 991px) {
    .member-card-large { flex-direction: column; text-align: center; padding: 2.5rem; }
    .pi-image-wrapper { margin-right: 0; margin-bottom: 2rem; }
}

.text-accent-gold {
    color: #eab308; /* High-visibility gold */
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.6;
}

/* Animated Fancy Background */
.fancy-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #0a0a0a; /* Deep base color */
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(76, 168, 131, 0.2) 0%, rgba(0, 32, 78, 0.2) 100%);
    filter: blur(80px);
    border-radius: 50%;
    animation: move 20s infinite alternate;
}

.blob-1 { top: -10%; left: -10%; background: rgba(76, 168, 131, 0.15); }
.blob-2 { bottom: -10%; right: -10%; background: rgba(0, 32, 78, 0.3); animation-duration: 25s; }
.blob-3 { top: 40%; left: 30%; background: rgba(212, 175, 55, 0.05); animation-duration: 30s; }

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 50px) scale(1.1); }
}

/* Glassmorphism for Section Content */
.col-md-6.ps-md-5, .col-md-6.pe-md-5 {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Enhancing Titles */
.text-success {
    background: linear-gradient(45deg, #4ca883, #9be3c3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700 !important;
}

/* Unified Top Navigation Panel */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.7); /* Subtle grey for inactive links */
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff; /* Pure white on hover */
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff !important; /* Pure white for active page */
    font-weight: 500;
}

/* Ensure the background matches the dark panel in your image */
.bg-dark {
    background-color: #1a1d21 !important; /* Matching the deep slate/black from image */
}

.hero-contact{
  background: url('assets/yy.jpg') center/cover no-repeat;
  min-height: 60vh;
  position: relative;

  /* makes centering actually work */
  padding-top: 0;
  padding-bottom: 0;

  /* space for fixed navbar without breaking centering */
  margin-top: 80px; /* adjust if your navbar is taller/shorter */
}

/* CONTACT HERO */
.lab-hero{
  position: relative;
  height: 42vh;
  min-height: 260px;
  background: var(--hero-img) center/cover no-repeat;
  display:flex;
  align-items:center;
  overflow:hidden;
}

/* soft dark overlay with green glow */
.lab-hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(10,10,10,0.95) 70%),
    radial-gradient(circle at center, rgba(76,168,131,0.18), transparent 70%);
}

/* title */
.lab-hero-title{
  font-size: clamp(2.4rem,5vw,3.8rem);
  font-weight: 700;
  color: white;
  letter-spacing: 0.05em;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* subtitle gradient */
.lab-hero-subtitle{
  margin-top: 0.6rem;
  font-size: 1.2rem;
  background: linear-gradient(45deg, #4ca883, #9be3c3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 700px;
  margin-left:auto;
  margin-right:auto;
}
