/* GENERAL */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:"Poppins",sans-serif}

/* THEME */
:root{
  --bg:#fff;--text:#000;--muted:rgb(85,85,85);--border:rgb(163,163,163);
  --soft:rgb(250,250,250);--elev:#fff;color-scheme:light;
}
:root[data-theme="dark"]{
  --bg:#0b0b0d;--text:#f2f3f5;--muted:#b8b8b8;--border:#2b2b2f;
  --soft:#141418;--elev:#0f0f13;color-scheme:dark;
}
html,body{background:var(--bg);color:var(--text)}
p{color:var(--muted)}

/* LINKS & BUTTONS */
a,.btn{transition:all .3s ease}
a{color:var(--text);text-decoration:none}
a:hover{color:var(--muted);text-decoration:underline;text-underline-offset:1rem;text-decoration-color:var(--border)}
.btn{font-weight:600;padding:1rem;width:8rem;border-radius:2rem}
.btn-container{display:flex;justify-content:center;gap:1rem}
.btn-color-1,.btn-color-2{border:var(--text) .1rem solid}
.btn-color-1,.btn-color-2:hover{background:var(--text);color:var(--bg)}
.btn-color-2{background:none}
.btn-color-1:hover{filter:brightness(.9)}

/* NAV */
nav,.nav-links{display:flex}
nav{justify-content:space-around;align-items:center;height:17vh;color:var(--text)}
.nav-links{gap:2rem;list-style:none;font-size:1.5rem}
.logo{font-size:2rem}.logo:hover{cursor:default}
.theme-toggle{margin-left:1rem;border:1px solid var(--border);background:var(--soft);color:var(--text);padding:.5rem .8rem;border-radius:999px;cursor:pointer;transition:transform .2s ease}
.theme-toggle:hover{transform:translateY(-1px)}

/* HAMBURGER */
#hamburger-nav{display:none}
.hamburger-menu{position:relative;display:inline-block}
.hamburger-icon{display:flex;flex-direction:column;justify-content:space-between;height:24px;width:30px;cursor:pointer}
.hamburger-icon span{width:100%;height:2px;background:var(--text);transition:all .3s ease}
.menu-links{position:absolute;top:100%;right:0;background:var(--elev);border:1px solid var(--border);width:fit-content;max-height:0;overflow:hidden;transition:all .3s ease;border-radius:12px}
.menu-links a{display:block;padding:10px;text-align:center;font-size:1.2rem;color:var(--text);transition:all .2s ease}
.menu-links li{list-style:none}
.menu-links.open{max-height:300px}
.hamburger-icon.open span:first-child{transform:rotate(45deg) translate(10px,5px)}
.hamburger-icon.open span:nth-child(2){opacity:0}
.hamburger-icon.open span:last-child{transform:rotate(-45deg) translate(10px,-5px)}

/* SECTIONS */
section{padding-top:4vh;margin:0 10rem;min-height:fit-content}
.section-container{display:flex;gap:4rem;height:80%}
.title{font-size:3rem;text-align:center}
.section__text{text-align:center;align-self:center}
.section__text p{font-weight:600}
.section__text__p2{font-size:1.75rem;margin-bottom:1rem}
#socials-container{display:flex;justify-content:center;margin-top:1rem;gap:1rem}
.icon{cursor:pointer;height:2rem}

/* PROFILE */
#profile{display:flex;justify-content:center;gap:5rem}
.section__pic-container{display:flex;height:400px;width:400px;margin:auto 0}

/* ABOUT — mobile-friendly stack */
.about-stack{align-items:center}
.about-media{width:min(420px,100%);aspect-ratio:1/1;max-height:420px}
.about-media img.about-pic{width:100%;height:100%;object-fit:cover;object-position:center 20%;border-radius:1.25rem;box-shadow:0 10px 30px rgba(0,0,0,.06)}
#about{position:relative}
.about-containers{gap:2rem;margin:2rem 0;display:flex;flex-wrap:wrap;justify-content:center;width:100%}
.about-details-container{display:flex;flex-direction:column;justify-content:center}
.details-container{padding:1.5rem;flex:1 1 clamp(260px,30%,360px);background:var(--elev);border-radius:2rem;border:var(--border) .1rem solid;text-align:center}
.arrow{position:absolute;right:1rem;bottom:2.5rem} /* keep inside viewport */

/* EXPERIENCE GRID */
#experience{position:relative}
.experience-sub-title{color:var(--muted);font-weight:600;font-size:1.5rem;margin-bottom:1.25rem}
.experience-details-container{display:flex;flex-direction:column;justify-content:center;width:100%}
.article-container{display:flex;text-align:initial;flex-wrap:wrap;gap:1.5rem;justify-content:center}
article{display:flex;align-items:center;gap:.75rem;width:clamp(9rem,30vw,12rem)}
article img{width:40px;height:40px;object-fit:contain;flex-shrink:0}

/* PROJECTS */
#projects{position:relative}
.color-container{border-color:var(--border);background:var(--soft)}
#projects .about-containers .details-container.color-container{flex:1 1 clamp(260px,30%,360px)}
.project-img{border-radius:1rem;width:100%;height:clamp(180px,22vw,260px);object-fit:cover;display:block}
.project-title{margin:1rem;color:var(--text)}
.project-btn{color:var(--text);border-color:var(--border)}

/* CONTACT */
#contact{display:flex;justify-content:center;flex-direction:column}
.contact-info-upper-container{display:flex;justify-content:center;border-radius:2rem;border:var(--border) .1rem solid;background:var(--soft);margin:2rem auto;padding:.5rem;flex-wrap:wrap}
.contact-info-container{display:flex;align-items:center;justify-content:center;gap:.5rem;margin:1rem}
.contact-info-container p{font-size:larger}
.contact-icon{cursor:default}
.email-icon{height:2.5rem}

/* FOOTER — wrap links, no fixed height */
footer{height:auto;padding:2rem 1rem;margin:0 1rem}
footer p{text-align:center;color:var(--muted)}
footer .nav-links{display:flex;flex-wrap:wrap;justify-content:center;gap:.75rem 1.5rem}

/* TIMELINE (xt) — no overlap on mobile */
.xt{position:relative;padding-block:3rem}
.xt__container{margin:0 auto;padding:0 1rem;max-width:1100px}
.xt__heading{text-align:center;font-weight:600;font-size:clamp(1.4rem,1.1rem + 1.2vw,2rem);color:var(--muted);margin-bottom:1.75rem}
.xt__timeline{position:relative;display:grid;gap:1.75rem;list-style:none;padding-left:2.75rem;margin:0}
.xt__timeline::before{content:"";position:absolute;left:1.25rem;top:0;bottom:0;width:2px;background:rgb(220,220,220)}
.xt__item{position:relative}
.xt__item::before{content:"";position:absolute;left:calc(1.25rem - 7px);top:1.1rem;width:14px;height:14px;border-radius:50%;background:rgb(53,53,53);box-shadow:0 0 0 4px rgba(53,53,53,.1)}
.xt__card{background:var(--elev);border:1px solid var(--border);border-radius:1.25rem;box-shadow:0 8px 18px rgba(0,0,0,.04);padding:1rem 1.25rem}

/* HEADER GRID — mobile: 2 cols, dates wrap below to avoid overlap */
.xt__head{
  display:grid;
  grid-template-columns:48px minmax(0,1fr); /* dates drop to next line on mobile */
  gap:.75rem 1rem;align-items:center;margin-bottom:.5rem
}
.xt__logo{width:48px;height:48px;object-fit:contain;border-radius:12px;background:var(--bg);border:1px solid rgb(230,230,230);padding:6px;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.xt__roleblock{min-width:0}
.xt__role{font-size:clamp(1.05rem,.9rem + .5vw,1.25rem);line-height:1.25;margin:0;color:var(--text);overflow-wrap:anywhere}
.xt__company{margin:.1rem 0 0;font-weight:500;color:var(--muted);overflow-wrap:anywhere}
.xt__dates{
  margin:.15rem 0 0;
  font-size:.95rem;color:rgb(120,120,120);
  grid-column:1/-1;             /* full row on mobile to prevent overlap */
  white-space:normal;            /* allow wrapping */
}

/* LIST & CHIPS */
.xt__list{margin:.25rem 0 0;padding-left:1.1rem;display:grid;gap:.4rem}
.xt__chips{list-style:none;margin-left:-1.1rem;padding-left:0;display:flex;flex-wrap:wrap;gap:.5rem}
.xt__chips>span{display:inline-block;padding:.25rem .6rem;border:1px solid rgb(220,220,220);border-radius:999px;background:var(--soft);font-size:.85rem;color:#333;white-space:nowrap}

/* TABLET/DESKTOP */
@media (min-width:760px){
  .xt__timeline{padding-left:0;gap:2.25rem}
  .xt__timeline::before{left:50%;transform:translateX(-50%)}
  .xt__item{display:grid;grid-template-columns:1fr 1fr}
  .xt__item::before{left:calc(50% - 1px - 7px)}
  .xt__item:nth-child(odd) .xt__card{grid-column:1/2;justify-self:end;max-width:560px;margin-right:1.25rem}
  .xt__item:nth-child(even) .xt__card{grid-column:2/3;justify-self:start;max-width:560px;margin-left:1.25rem}

  /* Desktop header puts dates back to the right */
  .xt__head{grid-template-columns:48px minmax(0,1fr) auto}
  .xt__dates{grid-column:auto;white-space:nowrap}
}
@media (min-width:1024px){
  .xt__heading{font-size:2rem}
  .xt__card{padding:1.1rem 1.4rem}
}

/* MOTION */
@media (prefers-reduced-motion:no-preference){
  .xt__item{transform:translateY(6px);opacity:0;animation:xtFadeUp 600ms ease forwards}
  .xt__item:nth-child(2){animation-delay:120ms}
  .xt__item:nth-child(3){animation-delay:240ms}
  @keyframes xtFadeUp{to{transform:translateY(0);opacity:1}}
}
[data-reveal]{opacity:0;transform:translateY(14px) scale(.98);filter:blur(2px);transition:opacity .6s ease,transform .6s ease,filter .6s ease}
[data-reveal].in{opacity:1;transform:none;filter:none}
[data-reveal="up"]{transform:translateY(24px)}

/* 3D TILT */
.tilt{transform-style:preserve-3d;transition:transform 200ms ease,box-shadow 200ms ease;will-change:transform}
.tilt:hover{box-shadow:0 10px 25px rgba(0,0,0,.08)}
.tilt__inner{transform:translateZ(35px)}

/* SAFETY NETS */
html,body{overflow-x:hidden}
img{max-width:100%;height:auto;display:block}

/* ===== CHAT STYLES ===== */

/* Chat FAB + modal (neon) */
.floating-fab-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  z-index: 9999;
  cursor: pointer;
  background: #ffffff;
  color: #24694f;
  font-size: 20px;
  box-shadow: 0 10px 30px rgba(36,105,79,0.12), 0 0 22px rgba(36,105,79,0.08) inset;
  border: 2px solid rgba(36,105,79,0.14);
  outline: none;
}

.floating-fab-chat::after{
  content: "";
  position: absolute;
  width: 140%;
  height: 140%;
  border-radius: 999px;
  filter: blur(12px);
  background: radial-gradient(circle at 30% 25%, rgba(36,105,79,0.18), rgba(36,105,79,0) 40%);
  z-index: -1;
  animation: neonPulse 2.6s infinite;
}

@keyframes neonPulse{0%{transform:scale(.98);opacity:.9}50%{transform:scale(1.06);opacity:1}100%{transform:scale(.98);opacity:.9}}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .chat-shell {
    max-width: 100%;
    height: 100dvh;
    height: 100%;
  }
  .chat-messages{
    min-height: 0;
  }
  .chat-controls textarea{
    font-size:16px;
    max-height:80px;
  }
}

@media (max-height: 600px) {
  .chat-controls textarea{
    max-height:60px;
  }
  .chatmsg{
    padding:6px 10px;
  }
}

.chat-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.chat-overlay.open{opacity:1;pointer-events:auto}

.chat-shell {
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: 480px;
  background: #fff;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  border-radius: 0;
  contain: layout style paint;
}

.chat-shell .topbar{padding:12px 16px;background:#24694f;display:flex;align-items:center;justify-content:space-between;gap:12px}
.chat-shell .topbar-left{display:flex;align-items:center;gap:10px;flex:1}
.chat-shell .topbar-avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#1f9d7a,#24694f);display:grid;place-items:center;color:#fff;font-weight:700}
.chat-shell .topbar-info{flex:1}
.chat-shell .title{font-weight:700;color:#fff;font-size:15px}
.chat-shell .topbar-status{font-size:12px;color:rgba(255,255,255,0.7)}
.chat-shell .topbar-mode{font-size:11px;color:rgba(255,255,255,0.8);background:rgba(255,255,255,0.15);padding:3px 10px;border-radius:12px;cursor:pointer;transition:background 0.2s}
.chat-shell .topbar-mode:hover{background:rgba(255,255,255,0.25)}
.chat-shell .topbar-icons{display:flex;gap:8px}
.chat-shell .topbar-icons button{background:transparent;border:none;color:#fff;cursor:pointer;font-size:18px}
.chat-messages{padding:12px;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:12px;background:#fff;min-height:0;flex:1;-webkit-overflow-scrolling:touch}
.chat-msg-group{display:flex;flex-direction:column;gap:2px}
.chat-msg{max-width:78%;padding:8px 12px;border-radius:18px;line-height:1.4;word-wrap:break-word}
.chat-msg-time{font-size:12px;opacity:0.6;padding:0 12px}
.chat-msg.user{align-self:flex-end;background:#dcf8c6;color:#000;border-bottom-right-radius:4px}
.chat-msg.bot{align-self:flex-start;background:#e5e5ea;color:#000;border-bottom-left-radius:4px}
.chat-controls{display:flex;gap:8px;padding:12px 16px;border-top:1px solid #e5e5ea;background:#fff;align-items:flex-end;flex-shrink:0;box-sizing:border-box}
.chat-controls textarea{flex:1;min-height:40px;max-height:100px;border-radius:20px;padding:10px 16px;color:#000;background:#f0f0f0;border:none;font-family:inherit;font-size:14px;resize:none;box-sizing:border-box;overflow:hidden}
.chat-controls button{width:40px;height:40px;border-radius:50%;padding:0;border:none;cursor:pointer;background:#24694f;color:#fff;display:grid;place-items:center;font-size:18px}

/* Image message styles */
.chat-msg.image-msg{max-width:100%;padding:0;border-radius:12px;background:transparent;display:flex;flex-direction:column}
.chat-msg.image-msg img{max-width:240px;width:100%;height:auto;border-radius:12px;background:#f0f0f0}
.image-prompt{font-size:12px;color:#666;margin-top:6px;max-width:240px;word-wrap:break-word}
.chat-msg.user.image-msg{align-self:flex-end}
.chat-msg.bot.image-msg{align-self:flex-start}

/* Mode selection modal */
.mode-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.5);display:none;z-index:10000;align-items:center;justify-content:center}
.mode-modal-overlay.show{display:flex}
.mode-modal{background:#fff;border-radius:16px;padding:24px;max-width:320px;width:90%;box-shadow:0 8px 24px rgba(0,0,0,0.15)}
.mode-modal h3{margin:0 0 12px 0;font-size:18px;color:#000;font-weight:700}
.mode-modal p{margin:0 0 20px 0;font-size:13px;color:#666;line-height:1.4}
.mode-buttons{display:flex;gap:10px;flex-direction:column}
.mode-btn{padding:12px 16px;border:none;border-radius:10px;background:#24694f;color:#fff;cursor:pointer;font-size:14px;font-weight:600;transition:background 0.2s}
.mode-btn:hover{background:#1f5a42}
.mode-btn.outlined{background:transparent;border:2px solid #24694f;color:#24694f}
.mode-btn.outlined:hover{background:#f5f5f5}

/* Image count indicator */
.image-count-badge{font-size:11px;background:rgba(255,255,255,0.2);color:#fff;padding:2px 8px;border-radius:10px;margin-left:4px}

.chat-close{background:transparent;border:none;font-size:20px;cursor:pointer;color:#fff}

/* Loading dots animation */
.loading-dots{display:inline-flex;gap:4px;align-items:center}
.loading-dots span{width:6px;height:6px;border-radius:50%;background:currentColor;animation:wave 1.4s infinite;display:inline-block}
.loading-dots span:nth-child(2){animation-delay:0.2s}
.loading-dots span:nth-child(3){animation-delay:0.4s}
@keyframes wave{0%,60%,100%{opacity:0.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-8px)}}

/* Typing effect */
.typing-cursor{display:inline-block;width:2px;height:1em;background:currentColor;margin-left:2px;animation:blink 0.7s infinite}
@keyframes blink{0%,49%{opacity:1}50%,100%{opacity:0}}

/* Meta AI style quick action */
.meta-ai-section{padding:12px 16px;border-bottom:1px solid #e5e5ea;background:#f8f8f8;display:flex;align-items:center;gap:10px;cursor:pointer;transition:background 0.2s}
.meta-ai-section:hover{background:#efefef}
.meta-ai-icon{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#6366f1,#8b5cf6);display:grid;place-items:center;color:#fff;font-size:14px;flex-shrink:0}
.meta-ai-text{flex:1}
.meta-ai-title{font-weight:600;font-size:13px;color:#000}
.meta-ai-desc{font-size:12px;color:#888;margin:2px 0 0 0}

/* FAB hidden state */
.floating-fab-chat.hidden{display:none}

/* FAB Label Animation */
.fab-label-container{position:fixed;right:20px;bottom:90px;z-index:9998;pointer-events:none}
.fab-label{background:linear-gradient(135deg,#24694f,#1f9d7a);color:#fff;padding:10px 14px;border-radius:20px;font-size:13px;font-weight:600;white-space:nowrap;box-shadow:0 4px 12px rgba(36,105,79,0.3);animation:labelSlideIn 0.5s ease-out,labelPulse 2.2s ease-in-out 0.5s infinite;opacity:1}
.fab-label::after{content:'';position:absolute;right:-8px;bottom:8px;width:0;height:0;border-left:8px solid #24694f;border-top:4px solid transparent;border-bottom:4px solid transparent}
@keyframes labelSlideIn{0%{opacity:0;transform:translateX(20px);bottom:-10px}100%{opacity:1;transform:translateX(0);bottom:0}}
@keyframes labelPulse{0%{transform:scale(1);opacity:1}50%{transform:scale(1.05);opacity:1}100%{transform:scale(1);opacity:1}}

@keyframes neonPulse{
  0%{transform:scale(0.98);opacity:0.9}
  50%{transform:scale(1.08);opacity:1}
  100%{transform:scale(0.98);opacity:0.9}
}

/* Dark theme overrides */
:root[data-theme="dark"] .chat-shell{background:#0a0a0a}
:root[data-theme="dark"] .chat-shell .topbar{background:#1a1a1a}
:root[data-theme="dark"] .chat-messages{background:#0a0a0a}
:root[data-theme="dark"] .chat-msg.bot{background:#262626;color:#e5e5ea}
:root[data-theme="dark"] .chat-msg.bot code{background:#1a1a1a !important;color:#75e0c0 !important}
:root[data-theme="dark"] .chat-msg.bot strong{color:#fff}
:root[data-theme="dark"] .chat-msg.user{background:#1f9d7a;color:#fff}
:root[data-theme="dark"] .chat-controls{background:#0a0a0a;border-top:1px solid #262626}
:root[data-theme="dark"] .chat-controls textarea{background:#262626;color:#e5e5ea}
:root[data-theme="dark"] .meta-ai-section{background:#1a1a1a;border-bottom:1px solid #262626}
:root[data-theme="dark"] .meta-ai-section:hover{background:#262626}
:root[data-theme="dark"] .meta-ai-title{color:#fff}
:root[data-theme="dark"] .meta-ai-desc{color:#888}
:root[data-theme="dark"] .floating-fab-chat{background:#0b1412;color:#75e0c0;border:1px solid rgba(117,224,192,0.08);box-shadow:0 10px 28px rgba(32,64,56,0.24)}
:root[data-theme="dark"] .fab-label{background:linear-gradient(135deg,#0b6b4f,#075c44);color:#75e0c0;box-shadow:0 4px 12px rgba(11,107,79,0.4)}
:root[data-theme="dark"] .fab-label::after{border-left-color:#0b6b4f}
:root[data-theme="dark"] .mode-modal{background:#1a1a1a;color:#fff}
:root[data-theme="dark"] .mode-modal h3{color:#fff}
:root[data-theme="dark"] .mode-modal p{color:#aaa}

/* Light theme formatting */
.chat-msg.bot code{background:#f0f0f0;color:#d63384}
.chat-msg.bot strong{color:#000;font-weight:600}

/* ===== CHAT LOADING SCREEN ===== */
.chat-loading-screen{display:none;flex-direction:column;align-items:center;justify-content:center;min-height:100%;padding:20px;background:linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);overflow-y:auto;gap:16px}
.chat-loading-screen.show{display:flex}
.loading-content{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;max-width:380px;width:100%}
.loading-animation{position:relative;width:80px;height:80px;margin:10px 0}
.spinner{width:100%;height:100%;border:4px solid rgba(36,105,79,0.1);border-top:4px solid #24694f;border-radius:50%;animation:spin 1s linear infinite}
@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}
.loading-content h2{font-size:20px;font-weight:700;color:#000;text-align:center;margin:0}
.about-ai{font-size:13px;color:#666;text-align:center;margin:0;font-weight:500}
.about-content{width:100%;display:flex;flex-direction:column;gap:12px;margin:8px 0}
.about-item{display:flex;align-items:flex-start;gap:12px;padding:12px;background:#fff;border-radius:12px;border:1px solid #e5e5ea}
.item-emoji{font-size:28px;flex-shrink:0;line-height:1}
.item-text{flex:1;min-width:0}
.item-title{font-weight:600;font-size:14px;color:#000;margin:0 0 2px 0}
.item-desc{font-size:12px;color:#666;line-height:1.3;margin:0}
.loading-tip{font-size:12px;color:#1f9d7a;background:rgba(31,157,122,0.08);padding:10px 12px;border-radius:8px;text-align:center;margin:8px 0 0 0;border-left:3px solid #1f9d7a}

/* Dark theme loading screen */
:root[data-theme="dark"] .chat-loading-screen{background:linear-gradient(135deg, #1a1a1a 0%, #0f0f13 100%)}
:root[data-theme="dark"] .loading-content h2{color:#fff}
:root[data-theme="dark"] .about-ai{color:#aaa}
:root[data-theme="dark"] .about-item{background:#262626;border-color:#333}
:root[data-theme="dark"] .item-title{color:#fff}
:root[data-theme="dark"] .item-desc{color:#999}
:root[data-theme="dark"] .loading-tip{color:#75e0c0;background:rgba(117,224,192,0.08);border-left-color:#75e0c0}
:root[data-theme="dark"] .spinner{border-color:rgba(117,224,192,0.1);border-top-color:#75e0c0}

/* ===== PUBLICATIONS SECTION ===== */
.publication-container{flex:1 1 clamp(280px,45%,500px) !important;background:var(--soft);border:1px solid var(--border);text-align:left}
.publication-header{margin-bottom:12px}
.publication-title{font-size:1.1rem;font-weight:700;color:var(--text);margin:0;line-height:1.3;word-break:break-word}
.publication-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;align-items:center}
.publication-role{display:inline-block;background:rgba(36,105,79,0.1);color:#24694f;padding:4px 10px;border-radius:12px;font-size:0.85rem;font-weight:600}
.publication-date{display:inline-block;color:var(--muted);font-size:0.9rem}
.publication-journal{margin:10px 0;color:var(--muted);font-size:0.95rem}
.publication-desc p{margin:0;color:var(--muted);font-size:0.9rem;line-height:1.5}
.publication-status{margin-top:10px}
.status-badge{display:inline-block;padding:6px 12px;border-radius:16px;font-size:0.85rem;font-weight:600}
.status-badge.submitted{background:rgba(31,157,122,0.15);color:#1f9d7a;border:1px solid rgba(31,157,122,0.3)}

/* Dark theme publications */
:root[data-theme="dark"] .publication-role{background:rgba(117,224,192,0.1);color:#75e0c0}
:root[data-theme="dark"] .status-badge.submitted{background:rgba(117,224,192,0.1);color:#75e0c0;border-color:rgba(117,224,192,0.3)}

/* ===== COPYRIGHT BADGE ===== */
.copyright-badge{display:inline-block;background:linear-gradient(135deg,#ff6b6b,#ff5252);color:white;width:24px;height:24px;border-radius:50%;text-align:center;line-height:24px;font-size:12px;font-weight:700;margin-left:8px;cursor:help;box-shadow:0 2px 8px rgba(255,107,107,0.3);vertical-align:middle}
.copyright-badge:hover{transform:scale(1.1);box-shadow:0 4px 12px rgba(255,107,107,0.5)}

/* Dark theme copyright badge */
:root[data-theme="dark"] .copyright-badge{background:linear-gradient(135deg,#ff5252,#ff4081);box-shadow:0 2px 8px rgba(255,80,130,0.3)}
:root[data-theme="dark"] .copyright-badge:hover{box-shadow:0 4px 12px rgba(255,80,130,0.5)}
