@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700&display=swap');

/* ==================== Reset & Base ==================== */
*{ margin:0; padding:0; box-sizing:border-box; scroll-behavior:smooth; }
a{ text-decoration:none; color:#fff; transition:.3s; }
ul{ list-style:none; }
img{ max-width:100%; }
body{ font-family:'Lexend',sans-serif; font-size:16px; line-height:24px; background-color:#202020; }
.container{ width:1170px; margin:auto; }

/* ==================== Header ==================== */
.header-area{ padding:25px 0; transition:padding .3s; }
.header-area.sticky{ position:fixed; top:0; left:0; width:100%; z-index:99; background-color:#202020; padding:5px; }

.header{ display:flex; justify-content:space-between; align-items:center; }
.logo{ display:flex; align-items:center; position:relative; text-transform:uppercase; font-size:26px; font-weight:700; }
.logo .fa-bolt{ color:#1E90FF; font-size:19.5px; position:absolute; top:60%; left:100%; transform:translate(-50%,-50%); z-index:1; }
.signature{ width:100px; height:auto; margin-right:10px; }

.header ul li:first-child{ margin-right:auto; }
.header ul{ display:flex; justify-content:center; align-items:center; }
.header ul li{ margin:0 15px; text-align:center; }
.header ul li a{ text-transform:capitalize; display:block; padding:10px 15px; }
.header ul li a.active{ color:#1E90FF; }
.header ul li a:hover{ color:#1E90FF; }
.header .menu_icon{ color:#fff; font-size:18px; cursor:pointer; display:none; }

/* ==================== Home ==================== */
.FirstElement{ display:flex; justify-content:space-around; align-items:center; padding-top:5rem; }
.FirstElement.adjusted-padding{ padding-top:40px; }

/* === Profile photo FINAL override === */
.FirstElement .profile-photo {
  width: 460px; /* slightly bigger */
  height: 460px;
  border-radius: 50%;
  overflow: hidden;
  border: 16px solid var(--brand);  /* your site taupe color */
  background-color: var(--card);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 2; /* ensures it's not hidden under anything */
}

.FirstElement .profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(0.88); /* zoomed-out look */
  transform-origin: center;
  transition: transform 0.4s ease;
}

.FirstElement .profile-photo img:hover {
  transform: scale(0.95);
}

/* override border color specifically for LIGHT theme */
:root[data-theme="light"] .FirstElement .profile-photo {
  border-color: #B8A99A !important;  /* warm peige border */
  background-color: #F4EFE9 !important;
}


.profile-text{ max-width:750px; display:flex; flex-direction:column; }
.profile-text h5{ color:#e5e5e5; font-size:20px; }
.profile-text h1{ color:#1E90FF; font-size:4rem; }
.profile-text p{ color:#e5e5e5; font-size:20px; }
.profile-text .social i{ color:#e5e5e5; font-size:18px; margin-right:10px; transition:.5s; }
.profile-text .social i:hover{ color:#1E90FF; transform:rotate(360deg); }

/* ==================== About ==================== */
.about-area{ padding-top:130px; background-color:#202020; }
.about{ display:flex; justify-content:space-between; align-items:center; margin-bottom:50px; }
.about-content{ font-size:20px; flex-basis:60%; }
.about-content h4{ color:#1E90FF; font-size:40px; line-height:70px; text-transform:capitalize; }
.about-content ul{ color:#fff; text-align:justify; }
.about-content ul li{ list-style-type:disc; margin-bottom:10px; }

.about-skills{ flex-basis:35%; }
.about-skills ul li{ border-bottom:1px dashed #ddd; padding-bottom:10px; margin-bottom:10px; color:#fff; font-size:18px; }
.about-skills ul li:last-child{ border-bottom:0; padding-bottom:0; margin-bottom:0; }

/* ==================== Buttons ==================== */
.btn-group{ margin:45px 0; }
.btn-group .btn{ border-color:#d5d5d5; color:#fff; background-color:#333; padding:12px 25px; margin:5px 0; margin-right:7px; border-radius:30px; border:2px solid #e5e5e5; box-shadow:0 10px 10px -8px rgb(0 0 0 / 78%); }
.btn.active{ border-color:#1E90FF; }

/* ==================== Education & Internship ==================== */
.education-content .row{ display:flex; border-radius:5px; height:400px; margin-bottom:250px; }
.education-content .title{ color:#1E90FF; }
.education-content .row .education,
.education-content .row .internship{ color:#e5e5e5; flex:0 0 50%; max-width:50%; margin-top:30px; }
.education-content h3.title{ font-size:24px; margin-bottom:30px; font-weight:700; }
.education-content .row.timeline-box{ flex:0 0 100%; max-width:100%; }
.education-content .row .timeline{ padding:30px 15px; border:1px solid #e5e5e5; border-radius:10px; width:100%; position:relative; }
.education-content .row .timeline-item{ position:relative; padding-left:37px; padding-bottom:50px; }
.education-content .row .internship .timeline-item{ position:relative; padding-left:37px; padding-bottom:30px; }
.education-content .row .timeline-item:last-child{ padding-bottom:0; }
.education-content .row .timeline-item::before{ content:""; width:1px; position:absolute; height:100%; left:7px; top:0; background-color:#1E90FF; }
.education-content .row .circle-dot{ position:absolute; left:0; top:0; height:15px; width:15px; border-radius:50%; background-color:#e5e5e5; }
.education-content .row .timeline-title{ font-weight:700; font-size:18px; margin-bottom:12px; }
.education-content .row .internship .timeline-title{ font-weight:700; font-size:18px; margin-bottom:8px; }
.education-content .row .timeline-text{ line-height:25px; font-size:16px; text-align:justify; }

/* ==================== Projects ==================== */
.project-content{ padding:200px 0 90px; }
.project-title{ margin-bottom:60px; text-align:center; }
.project-title h4{ text-transform:uppercase; font-size:40px; line-height:40px; color:#1E90FF; margin-bottom:20px; }
.project-title p{ color:#e5e5e5; }
.projects{ display:flex; justify-content:space-between; flex-wrap:wrap; }
.project{ color:#e5e5e5; border:2px solid #e5e5e5; border-radius:10px; width:100%; position:relative; padding:25px; text-align:center; flex-basis:32%; transition:.3s; }
.project i{ background-color:#1E90FF; width:60px; height:60px; color:#333; font-size:26px; line-height:60px; border-radius:50%; }
.project h4{ font-size:26px; text-transform:capitalize; margin:20px 0; }
.project p{ text-align:justify; }
.project a{ display:block; color:#1E90FF; }
.project:hover{ border-color:#1E90FF; }

/* ==================== Footer ==================== */
.footer{ max-width:950px; margin:0 auto; padding:15px 0 26px; border-top:1px solid rgba(255,255,255,.1); color:rgba(255,255,255,.4); display:flex; flex-direction:column; align-items:center; text-align:center; }
.footer .message{ font-size:12px; color:#000; margin-bottom:10px; }
.copyright{ font-size:12px; }

/* ==================== Responsive ==================== */
@media only screen and (min-width:1000px) and (max-width:1200px){ .container{ width:970px; } }
@media(max-width:1050px){
  .FirstElement{ flex-direction:column; padding-top:2rem; }
  .profile-text{ padding:40px 0; }
}
@media only screen and (min-width:768px) and (max-width:999px){ .container{ width:750px; } }
@media only screen and (max-width:767px){
  .container{ width:350px; }
  .header .menu_icon{ display:block; }
  .header ul{ display:none; }
  .header i{ color:#e5e5e5; }
  .profile-text{ width:350px; }
  .FirstElement .profile-text p{ text-align:justify; }
  .about{ flex-direction:column; flex-basis:100%; margin-bottom:30px; }
  .about-skills{ width:100%; margin-top:30px; }
  .education-content .row{ flex-direction:column; height:auto; margin-bottom:50px; }
  .education-content .row .education,
  .education-content .row .internship{ flex-basis:100%; max-width:100%; margin-top:30px; }
  .project{ flex-basis:100%; margin-bottom:30px; }
}

/* ===== Accordion (Research) ===== */
details.accordion{ background:#fff; border-radius:14px; margin:14px 0 0 0; box-shadow:0 6px 18px rgba(0,0,0,.06); border-left:4px solid #333; overflow:clip; }
details.accordion summary{ list-style:none; cursor:pointer; padding:14px 16px; display:flex; align-items:center; justify-content:space-between; gap:12px; user-select:none; }
details.accordion summary::-webkit-details-marker{ display:none; }
details.accordion .accordion-title{ font-weight:700; line-height:1.35; }
details.accordion .chevron{ width:10px; height:10px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(-45deg); transition:transform .2s ease; flex:0 0 10px; }
details.accordion[open] .chevron{ transform:rotate(45deg); }
details.accordion .accordion-body{ padding:0 16px 16px 16px; color:#333; }
details.accordion[open] .accordion-body{ animation:accordion-open .18s ease-out; }
@keyframes accordion-open{ from{opacity:0; transform:translateY(-4px);} to{opacity:1; transform:translateY(0);} }
@media (max-width:640px){
  details.accordion summary{ padding:12px 14px; }
  details.accordion .accordion-body{ padding:0 14px 14px 14px; }
}

/* ===== Initiatives grid ===== */
.projects{ display:grid; grid-template-columns:repeat(3,minmax(260px,1fr)); gap:24px; }
@media (max-width:1000px){ .projects{ grid-template-columns:repeat(2,minmax(260px,1fr)); } }
@media (max-width:640px){ .projects{ grid-template-columns:1fr; } }

/* ===== Research unclipped + timeline visuals removed ===== */
#research.education-content .row{ height:auto !important; margin-bottom:60px !important; border-radius:5px; }
#research .timeline::before{ content:none !important; }
#research .circle-dot{ display:none !important; }
#research .timeline{ border:0; padding:0; }
#research .timeline-item{ padding-left:0; padding-bottom:12px; }
#research .title{ margin-bottom:14px; }

/* ===== Global timeline fixes ===== */
.education-content .row{ height:auto !important; margin-bottom:80px !important; align-items:stretch; }
.education-content .row .timeline{ overflow:hidden; }
#research .education, #research .internship{ flex:0 0 100% !important; max-width:100% !important; }
#research .timeline{ border:0 !important; padding:0 !important; }
#research .timeline-item{ padding-left:0 !important; padding-bottom:14px; }
#research .timeline-item::before{ content:none !important; }
#research .circle-dot{ display:none !important; }
.project-content{ padding-top:90px; }

/* ==================== THEME: Taupe/Greige ==================== */
/* Core palette sampled from your swatch + harmonious shades */
:root{
  --brand:        #B8A99A; /* primary taupe */
  --brand-600:    #8F8173; /* darker taupe for hovers/active */
  --brand-300:    #D9CEC4; /* light taupe for tints */
  --brand-100:    #EEE7E1; /* very light wash */

  /* shared */
  --radius:14px;
  --shadow-soft:0 6px 18px rgba(2,6,23,.18);

  /* LIGHT defaults */
  --bg:#f8fafc;
  --bg2:#ffffff;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --border:#cbd5e1;
}

/* Respect OS preference */
@media (prefers-color-scheme: dark){
  :root{
    --bg:#0f172a;
    --bg2:#111827;
    --card:#0b1220;
    --text:#e5e7eb;
    --muted:#94a3b8;
    --border:#334155;
  }
}

/* Explicit themes */
:root[data-theme="light"]{
  --bg:#f8fafc;
  --bg2:#ffffff;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --border:#cbd5e1;
}
:root[data-theme="dark"]{
  --bg:#0f172a;
  --bg2:#111827;
  --card:#0b1220;
  --text:#e5e7eb;
  --muted:#94a3b8;
  --border:#334155;
}

/* Smooth transitions */
html, body, .timeline, .project, details.accordion{
  transition:background-color .25s ease, color .25s ease, border-color .25s ease;
}

/* Map old styles to tokens + brand */
body{ background-color:var(--bg) !important; color:var(--text) !important; }
a{ color:var(--text) !important; }
a:hover{ color:var(--brand) !important; }

.header-area.sticky{ background-color:var(--bg2) !important; }
.header ul li a.active, .header ul li a:hover{ color:var(--brand) !important; }
.header .menu_icon, .header i{ color:var(--text) !important; }
.logo .fa-bolt{ color:var(--brand) !important; }

/*.FirstElement .profile-photo{ border-color:var(--brand) !important; }*/
.profile-text h1{ color:var(--brand) !important; }
.profile-text h5, .profile-text p{ color:var(--text) !important; }
.profile-text .social i{ color:var(--muted) !important; }
.profile-text .social i:hover{ color:var(--brand) !important; }

.btn-group .btn{ background-color:var(--bg2) !important; border-color:var(--border) !important; color:var(--text) !important; }
.btn.active{ border-color:var(--brand) !important; }

.about-area{ background-color:var(--bg) !important; }
.about-content h4, .education-content .title, .project-title h4{ color:var(--brand) !important; }

.education-content .row .timeline{ border-color:var(--border) !important; background:transparent !important; }
.education-content .row .timeline-item::before{ background-color:var(--brand) !important; }
.education-content .row .circle-dot{ background-color:var(--text) !important; }
.education-content .row .education,
.education-content .row .internship,
.education-content .row .timeline-text{ color:var(--text) !important; }

.project{ background:transparent !important; border-color:var(--border) !important; color:var(--text) !important; }
.project:hover{ border-color:var(--brand) !important; }
.project i{ background-color:var(--brand) !important; color:#fff !important; }
.project a{ color:var(--brand) !important; }

details.accordion{ background:var(--card) !important; color:var(--text) !important; border-left-color:var(--brand) !important; box-shadow:var(--shadow-soft) !important; }
details.accordion .accordion-body{ color:var(--text) !important; }
details.accordion .chevron{ color:var(--muted) !important; }
details.accordion:hover > summary{ background:color-mix(in srgb, var(--bg2) 88%, var(--brand)) !important; }

input, textarea{ background:var(--bg2) !important; color:var(--text) !important; border:1px solid var(--border) !important; }
.contact .submit{ background-color:var(--brand) !important; color:#0b1220 !important; }

.footer{ border-top:1px solid var(--border) !important; color:color-mix(in srgb, var(--text) 65%, transparent) !important; }
.footer .message{ color:color-mix(in srgb, var(--text) 55%, transparent) !important; }

/* Research cards theme-specific shadows */
:root[data-theme="light"]{ --card-shadow:0 10px 24px rgba(2,6,23,.10), 0 2px 6px rgba(2,6,23,.06); }
:root[data-theme="dark"]{ --card-shadow:0 10px 24px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.35); }

#research .timeline{ border:0 !important; padding:0 !important; background:transparent !important; }
#research .timeline-item{ padding-left:0 !important; padding-bottom:16px !important; }
#research .timeline-item::before, #research .circle-dot{ display:none !important; }

#research details.accordion{
  background:var(--card) !important;
  color:var(--text) !important;
  border-radius:16px !important;
  border:1px solid var(--border) !important;
  border-left:6px solid var(--brand) !important;
  box-shadow:var(--card-shadow) !important;
  overflow:hidden;
  margin:18px 0 !important;
}
#research details.accordion > summary{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:18px 20px !important; cursor:pointer; list-style:none; color:var(--text) !important;
}
#research .accordion-title{ font-weight:800 !important; font-size:20px !important; line-height:1.35; }
#research .chevron{ width:11px; height:11px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; color:var(--muted); transform:rotate(-45deg); transition:transform .2s ease, color .2s ease; flex:0 0 11px; }
#research details[open] .chevron{ transform:rotate(45deg); color:var(--brand); }
#research details.accordion:hover > summary{ background:color-mix(in srgb, var(--bg2) 85%, var(--brand)) !important; }
#research .accordion-body{ padding:0 20px 18px 20px !important; color:var(--text) !important; }
#research .accordion-body a{ color:var(--brand); text-decoration:underline; }
#research .title{ color:var(--brand) !important; margin-bottom:12px !important; }


/* === Fancy LIGHT theme (peige / parchment) === */
:root[data-theme="light"]{
  --bg:    #F4EFE9;   /* parchment */
  --bg2:   #FAF7F3;   /* card base */
  --card:  #FFFBF7;   /* lifted card */
  --text:  #1B1D1F;   /* deep ink */
  --muted: #4B5563;   /* slate accents */
  --border:#E8DFD7;   /* warm border */
  --brand: #B8A99A;   /* your taupe stays */
}

/* Fancy paper background for LIGHT only */
:root[data-theme="light"] body{
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 18% -10%, rgba(184,169,154,.18), transparent 60%),
    radial-gradient(900px 480px at 92% 6%,  rgba(184,169,154,.12), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,0));
  background-attachment: fixed;
}

/* Cards look a bit richer in LIGHT */
:root[data-theme="light"] .project,
:root[data-theme="light"] details.accordion,
:root[data-theme="light"] .timeline{
  background: linear-gradient(180deg, var(--card), color-mix(in srgb, var(--card) 92%, white));
  border-color: var(--border);
  box-shadow: 0 12px 28px rgba(31,41,55,.10), 0 2px 6px rgba(31,41,55,.06);
}

/* Buttons + hovers tuned for the warm palette */
:root[data-theme="light"] .btn-group .btn{
  background: var(--bg2);
  border-color: var(--border);
  color: var(--text);
}
:root[data-theme="light"] .btn.active,
:root[data-theme="light"] .project:hover{
  border-color: var(--brand);
}

/* Links + accents */
:root[data-theme="light"] a:hover,
:root[data-theme="light"] .logo .fa-bolt,
:root[data-theme="light"] .profile-text h1,
:root[data-theme="light"] .education-content .title,
:root[data-theme="light"] .project-title h4,
:root[data-theme="light"] #research .title{
  color: var(--brand) !important;
}

/* Inputs (if enabled) */
:root[data-theme="light"] input,
:root[data-theme="light"] textarea{
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
}

/* Footer tint */
:root[data-theme="light"] .footer{
  border-top: 1px solid var(--border);
  color: color-mix(in srgb, var(--text) 65%, transparent);
}

/* === Fix: About Me text only for LIGHT mode === */
:root[data-theme="light"] .about-content ul,
:root[data-theme="light"] .about-content ul li {
  color: #3B3B3B !important; /* rich ink-grey that fits the peige background */
}

/* === Fancy theme switch (no emojis) === */
.toggle{
  --h: 34px;                 /* height of control */
  --w: 84px;                 /* width of track */
  --pad: 6px;                /* inner padding */
  --radius: 999px;

  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .2s ease;
}

.toggle:hover{
  border-color: var(--brand);
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.toggle:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}

.toggle .label{
  opacity: .75;
  letter-spacing: .2px;
}
.toggle .label.light{ order: 0; }
.toggle .label.dark{ order: 2; }

/* track + thumb */
.toggle .track{
  order: 1;
  position: relative;
  width: var(--w);
  height: var(--h);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg2) 84%, var(--brand));
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.06);
  transition: background-color .25s ease, border-color .25s ease;
  flex: 0 0 var(--w);
}

.toggle .thumb{
  position: absolute;
  top: var(--pad);
  left: var(--pad);
  width: calc(var(--h) - var(--pad)*2);
  height: calc(var(--h) - var(--pad)*2);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--card), color-mix(in srgb, var(--card) 88%, white));
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  transform: translateX(0);
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
}

/* when DARK is active, slide thumb right and deepen track */
:root[data-theme="dark"] .toggle .thumb{
  transform: translateX(calc(var(--w) - var(--h)));
}
:root[data-theme="dark"] .toggle .track{
  background: color-mix(in srgb, var(--bg2) 75%, var(--brand));
}

/* subtle emphasis on the active label */
:root[data-theme="light"] .toggle .label.light{ opacity: 1; color: var(--brand); }
:root[data-theme="dark"]  .toggle .label.dark { opacity: 1; color: var(--brand); }

/* reduce motion if user prefers */
@media (prefers-reduced-motion: reduce){
  .toggle, .toggle .thumb, .toggle .track{ transition: none; }
}

/* === FINAL profile photo styling === */
.FirstElement .profile-photo {
  width: 460px;
  height: 460px;
  border-radius: 50%;
  overflow: hidden;

  /* this is the color of the ring */
  border: 16px solid #B8A99A;      /* soft taupe / peige ring */
  background-color: #F4EFE9;       /* same tone as page background for seamless edge */

  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.18),
    inset 0 0 8px rgba(255, 255, 255, 0.25); /* soft inner glow for depth */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.FirstElement .profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(0.88);          /* zoomed-out look */
  transform-origin: center;
  transition: transform 0.4s ease;
}

.FirstElement .profile-photo img:hover {
  transform: scale(0.95);
}
/* === FORCE OVERRIDE: square profile frame === */
.FirstElement .profile-photo {
  width: 460px !important;
  height: 460px !important;
  border-radius: 20px !important;      /* <— square with gentle rounded corners */
  overflow: hidden !important;

  border: 16px solid #B8A99A !important;  /* taupe/peige frame */
  background-color: #F4EFE9 !important;   /* warm parchment inner fill */

  box-shadow: 0 8px 30px rgba(0,0,0,0.25) !important;
  position: relative !important;
  z-index: 5 !important;
}

.FirstElement .profile-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: scale(0.9) !important;       /* slightly zoomed-out */
  transform-origin: center !important;
  transition: transform 0.4s ease !important;
}

.FirstElement .profile-photo img:hover {
  transform: scale(0.95) !important;
}



/* === Research: prettier accordion + status badges === */
#research details.accordion{
  border: 1px solid var(--border) !important;
  border-left: 6px solid var(--brand) !important;
  border-radius: 16px !important;
  background: var(--card) !important;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin: 18px 0 !important;
}

#research details.accordion > summary{
  display: grid !important;
  grid-template-columns: 1fr auto 12px;   /* title | status | chevron */
  align-items: center;
  gap: 12px;
  padding: 18px 20px !important;
  list-style: none;
  cursor: pointer;
  background: color-mix(in srgb, var(--card) 92%, var(--brand));
}

#research details.accordion[open] > summary{
  border-bottom: 1px solid var(--border); /* crisp separation */
  background: var(--card);
}

#research .accordion-title{
  font-weight: 800 !important;
  font-size: 20px !important;
  line-height: 1.35;
  margin: 0;               /* keep the header a steady height */
}

#research .chevron{
  width: 11px; height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--muted);
  transform: rotate(-45deg);
  transition: transform .2s ease, color .2s ease;
}
#research details[open] .chevron{ transform: rotate(45deg); color: var(--brand); }

#research .accordion-body{
  padding: 16px 20px 18px 20px !important;
  color: var(--text) !important;
  background: var(--card);
}

/* status badge */
.badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2px;
  border: 1px solid var(--border);
  color: color-mix(in srgb, var(--text) 85%, var(--brand));
  background: color-mix(in srgb, var(--bg2) 88%, var(--brand));
}
.badge::before{
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent);
}
/* optional hover */
#research details.accordion:hover > summary{
  background: color-mix(in srgb, var(--card) 86%, var(--brand));
}
/* bullets for the UL that has class="timeline-text" */
.timeline-text {
  list-style-type: disc !important;
  list-style-position: outside;
  margin-left: 1.5rem;
  padding-left: 1.5rem;
}

/* spacing for each bullet item */
.timeline-text > li {
  margin-bottom: 0.3rem;
  line-height: 1.6;
}


/* Fix name and heading alignment on mobile */
@media screen and (max-width: 768px) {
  .FirstElement {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-photo img {
    width: 180px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 1rem;
  }

  .profile-text {
    max-width: 90%;
    padding: 0 1rem;
  }

  .profile-text h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    word-break: keep-all;
    white-space: normal;
  }

  .profile-text h5 {
    font-size: 1rem;
  }

  .profile-text p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .btn-group {
    flex-direction: column;
    gap: 0.5rem;
  }
}
