/*
Theme Name: Aurora Spectrum
Theme URI: https://anikusa.com
Author: Anik Biswas
Author URI: https://anikusa.com
Description: A colorful, modern research portfolio for Anik Biswas — AI, Healthcare Informatics & Cybersecurity researcher. Gradient accents, soft-shadow cards, glassmorphism, and hover motion, as a companion to the monochrome "Broadside" theme.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: aurora-spectrum
*/

/* ============================================
   TOKENS
   ============================================ */
:root{
  --ink: #15162B;
  --muted: #6B7188;
  --bg: #FAFAFF;
  --panel: #FFFFFF;
  --line: #ECEBFA;

  --violet: #7C3AED;
  --violet-soft: #F1E9FE;
  --cyan: #06B6D4;
  --cyan-soft: #E1FAFE;
  --rose: #F43F5E;
  --rose-soft: #FFE7EB;
  --amber: #F59E0B;
  --amber-soft: #FFF3DC;

  --grad: linear-gradient(135deg, var(--violet), var(--cyan));
  --grad-warm: linear-gradient(135deg, var(--rose), var(--amber));

  --font-head: 'Sora', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'Space Mono', Consolas, monospace;

  --pad: clamp(20px, 5vw, 64px);
  --r: 18px;
  --shadow-sm: 0 6px 16px -10px rgba(28,20,70,0.18);
  --shadow-md: 0 18px 40px -18px rgba(28,20,70,0.28);
  --shadow-lg: 0 28px 60px -20px rgba(28,20,70,0.34);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; background: var(--bg); color: var(--ink); font-family: var(--font-body);
  line-height:1.65; -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color: var(--violet); text-decoration:none; }
a:focus-visible, button:focus-visible{ outline:2px solid var(--violet); outline-offset:3px; }
.skip-link{ position:absolute; left:-9999px; background:#fff; color:#000; padding:10px 16px; z-index:200; }
.skip-link:focus{ left:12px; top:12px; }
.wrap{ max-width:1180px; margin:0 auto; padding:0 var(--pad); }

/* ============================================
   REVEAL ANIMATION
   ============================================ */
.reveal{ opacity:0; transform: translateY(22px) scale(.98); transition: opacity .6s cubic-bezier(.16,.8,.3,1), transform .6s cubic-bezier(.16,.8,.3,1); transition-delay: var(--d,0ms); }
.reveal.is-visible{ opacity:1; transform:none; }
.reveal-stagger > *{ opacity:0; transform: translateY(18px) scale(.98); transition: opacity .5s cubic-bezier(.16,.8,.3,1), transform .5s cubic-bezier(.16,.8,.3,1); transition-delay: var(--d,0ms); }
.reveal-stagger.is-visible > *{ opacity:1; transform:none; }

/* ============================================
   NAV — glass sticky bar
   ============================================ */
.topbar{ position:sticky; top:0; z-index:70; padding-top:14px; }
.topbar-inner{
  max-width:1180px; margin:0 auto; padding: 12px 22px;
  background: rgba(255,255,255,0.72); backdrop-filter: blur(14px) saturate(160%);
  border:1px solid rgba(255,255,255,0.6); border-radius: 999px; box-shadow: var(--shadow-sm);
  display:flex; align-items:center; justify-content:space-between;
}
.tb-mark{ font-family: var(--font-head); font-weight:700; font-size:0.95rem; display:flex; align-items:center; gap:8px; }
.tb-dot{ width:10px; height:10px; border-radius:50%; background: var(--grad); }
.tb-nav ul{ list-style:none; display:flex; gap:4px; margin:0; padding:0; }
.tb-nav a{ font-size:0.86rem; font-weight:600; color: var(--ink); padding:8px 13px; border-radius:999px; transition: background .18s ease, color .18s ease; }
.tb-nav a:hover{ background: var(--violet-soft); color: var(--violet); text-decoration:none; }
.tb-toggle{ display:none; }
@media (max-width:900px){
  .tb-nav{ display:none; position:absolute; top:70px; left:16px; right:16px; background:#fff; border-radius:20px; box-shadow: var(--shadow-md); padding:14px; }
  .tb-nav.is-open{ display:block; }
  .tb-nav ul{ flex-direction:column; }
  .tb-nav a{ display:block; }
  .tb-toggle{ display:inline-flex; background: var(--grad); color:#fff; border:none; border-radius:999px; padding:9px 16px; font-weight:700; font-size:0.82rem; }
}

/* ============================================
   HERO — animated gradient mesh
   ============================================ */
.hero{ position:relative; padding: clamp(60px,8vw,110px) 0 clamp(40px,6vw,70px); overflow:hidden; }
.hero-blob{ position:absolute; border-radius:50%; filter: blur(70px); opacity:0.55; z-index:0; animation: float 14s ease-in-out infinite; }
.hero-blob.b1{ width:420px; height:420px; background: var(--violet); top:-180px; left:-120px; }
.hero-blob.b2{ width:380px; height:380px; background: var(--cyan); top:-80px; right:-140px; animation-delay:-4s; }
.hero-blob.b3{ width:300px; height:300px; background: var(--rose); bottom:-160px; left:35%; animation-delay:-8s; }
@keyframes float{ 0%,100%{ transform: translate(0,0);} 50%{ transform: translate(24px,-26px);} }

.hero .wrap{ position:relative; z-index:1; }
.hero-grid{ display:grid; grid-template-columns: 1fr auto; gap:40px; align-items:center; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-family: var(--font-mono); font-size:0.74rem;
  background: var(--violet-soft); color: var(--violet); padding:7px 14px; border-radius:999px; font-weight:700;
}
.hero h1{ font-family: var(--font-head); font-weight:700; font-size: clamp(2.3rem,5vw,3.7rem); line-height:1.08; margin: 18px 0 0; }
.hero h1 .grad{ background: var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero .role{ font-size: clamp(1rem,1.5vw,1.15rem); color: var(--muted); max-width:58ch; margin:18px 0 0; }
.hero-actions{ display:flex; gap:14px; margin:30px 0 0; flex-wrap:wrap; }

.btn{ font-family: var(--font-body); font-weight:700; font-size:0.9rem; padding:14px 24px; border-radius:999px; transition: transform .18s ease, box-shadow .18s ease; display:inline-flex; align-items:center; gap:8px; }
.btn-grad{ background: var(--grad); color:#fff; box-shadow: var(--shadow-sm); }
.btn-grad:hover{ transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-md); text-decoration:none; }
.btn-ghost{ background:#fff; color: var(--ink); border:1.5px solid var(--line); }
.btn-ghost:hover{ border-color: var(--violet); color: var(--violet); transform: translateY(-3px); text-decoration:none; box-shadow: var(--shadow-sm); }

.portrait{
  width:150px; height:150px; border-radius:34px; padding:5px; background: var(--grad);
  box-shadow: var(--shadow-lg); flex-shrink:0; transition: transform .3s ease;
}
.portrait:hover{ transform: rotate(-2deg) scale(1.03); }
.portrait-inner{ width:100%; height:100%; border-radius:30px; overflow:hidden; background:#fff; display:flex; align-items:center; justify-content:center; }
.portrait-inner img{ width:100%; height:100%; object-fit:cover; }
.portrait-inner .mono{ font-family: var(--font-head); font-weight:700; font-size:2.4rem; background: var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
@media (max-width:760px){ .hero-grid{ grid-template-columns:1fr; } .portrait{ width:110px; height:110px; } }

.stat-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:44px; }
.stat{ background:#fff; border-radius:var(--r); padding:20px 18px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.stat:hover{ transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stat .n{ font-family: var(--font-head); font-weight:700; font-size:1.8rem; }
.stat .n em{ font-style:normal; background: var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.stat .l{ font-family: var(--font-mono); font-size:0.68rem; text-transform:uppercase; letter-spacing:0.05em; color: var(--muted); margin-top:2px; }
@media (max-width:640px){ .stat-row{ grid-template-columns:repeat(2,1fr);} }

/* ============================================
   SECTION SHELL
   ============================================ */
.block{ padding: clamp(48px,7vw,84px) 0; }
.block-head{ display:flex; align-items:center; gap:14px; margin-bottom:30px; }
.block-head .no{ font-family: var(--font-head); font-weight:700; font-size:0.82rem; background: var(--grad); color:#fff; width:34px; height:34px; border-radius:11px; display:flex; align-items:center; justify-content:center; box-shadow: var(--shadow-sm); }
.block-head h2{ font-family: var(--font-head); font-weight:700; font-size: clamp(1.5rem,2.8vw,2.1rem); margin:0; }
.block-sub{ color: var(--muted); font-size:0.98rem; max-width:60ch; margin: -18px 0 28px 48px; }

/* ============================================
   SUMMARY / ENDEAVOR
   ============================================ */
.split{ display:grid; grid-template-columns:1.1fr 1fr; gap:36px; }
.split p{ font-size:1.04rem; }
.panel{ background:#fff; border-radius:var(--r); padding:26px; box-shadow: var(--shadow-sm); }
.endeavor{ list-style:none; margin:0; padding:0; }
.endeavor li{ display:grid; grid-template-columns:30px 1fr; gap:12px; padding:12px 0; border-bottom:1px dashed var(--line); font-size:0.95rem; }
.endeavor li:last-child{ border-bottom:none; }
.endeavor .no{ font-family: var(--font-mono); font-weight:700; color: var(--violet); }
@media (max-width:900px){ .split{ grid-template-columns:1fr; } }

/* ============================================
   TAGS
   ============================================ */
.tags{ display:flex; flex-wrap:wrap; gap:10px; }
.tag-chip{
  font-family: var(--font-body); font-weight:600; font-size:0.85rem; padding:9px 16px; border-radius:999px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tag-chip:hover{ transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.tag-chip.c1{ background: var(--violet-soft); color: var(--violet); }
.tag-chip.c2{ background: var(--cyan-soft); color: #0E7490; }
.tag-chip.c3{ background: var(--rose-soft); color: #BE123C; }
.tag-chip.c4{ background: var(--amber-soft); color: #B45309; }

/* ============================================
   TIMELINE
   ============================================ */
.tl{ position:relative; padding-left:36px; }
.tl::before{ content:""; position:absolute; left:9px; top:6px; bottom:6px; width:3px; border-radius:3px; background: var(--grad); }
.tl-item{ position:relative; padding-bottom:32px; }
.tl-item:last-child{ padding-bottom:0; }
.tl-item::before{ content:""; position:absolute; left:-36px; top:2px; width:22px; height:22px; border-radius:50%; background:#fff; border:3px solid var(--violet); box-shadow: var(--shadow-sm); }
.tl-item:nth-child(even)::before{ border-color: var(--cyan); }
.tl-card{ background:#fff; border-radius:var(--r); padding:20px 22px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.tl-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tl-item .when{ font-family: var(--font-mono); font-size:0.78rem; color: var(--violet); font-weight:700; }
.tl-item h3{ font-family: var(--font-head); font-size:1.12rem; font-weight:700; margin:4px 0 3px; }
.tl-item .org{ color: var(--muted); font-size:0.92rem; margin-bottom:8px; }
.tl-item ul{ margin:0; padding-left:18px; font-size:0.93rem; }
.tl-item ul li{ margin-bottom:4px; }

/* ============================================
   PUBLICATIONS — colorful cards
   ============================================ */
.pub-grid{ display:grid; gap:14px; }
.pub-card{
  background:#fff; border-radius:var(--r); padding:20px 22px; box-shadow: var(--shadow-sm);
  display:grid; grid-template-columns:1fr auto; gap:16px; align-items:center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pub-card:hover{ transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pub-card .title{ font-family: var(--font-head); font-weight:600; font-size:1rem; line-height:1.4; }
.pub-card .meta{ font-family: var(--font-mono); font-size:0.76rem; color: var(--muted); margin-top:6px; }
.pub-card .badge{
  font-family: var(--font-mono); font-size:0.78rem; font-weight:700; color:#fff; background: var(--grad);
  padding:9px 14px; border-radius:999px; white-space:nowrap; text-align:center; box-shadow: var(--shadow-sm);
}
.pub-card .badge.zero{ background: var(--line); color: var(--muted); box-shadow:none; }
@media (max-width:600px){ .pub-card{ grid-template-columns:1fr; } .pub-card .badge{ justify-self:flex-start; } }

/* ============================================
   CARD GRID (patents / presentations / volunteer)
   ============================================ */
.card-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:16px; }
.card{ background:#fff; border-radius:var(--r); padding:24px; box-shadow: var(--shadow-sm); border-top:4px solid var(--violet); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card:nth-child(2){ border-top-color: var(--cyan); }
.card:nth-child(3){ border-top-color: var(--rose); }
.card:nth-child(4){ border-top-color: var(--amber); }
.card .tag2{ font-family: var(--font-mono); font-size:0.66rem; text-transform:uppercase; letter-spacing:0.06em; color: var(--violet); font-weight:700; }
.card h3{ font-family: var(--font-head); font-weight:700; font-size:1.04rem; margin:9px 0 6px; }
.card p{ color: var(--muted); font-size:0.92rem; margin:0; }

/* ============================================
   HONORS
   ============================================ */
.honors{ list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.honors li{ display:flex; gap:16px; align-items:center; background:#fff; border-radius:var(--r); padding:16px 20px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.honors li:hover{ transform: translateX(4px); box-shadow: var(--shadow-md); }
.honors .yr{ font-family: var(--font-mono); font-size:0.78rem; font-weight:700; color:#fff; background: var(--grad-warm); padding:7px 12px; border-radius:999px; white-space:nowrap; }

/* ============================================
   SKILLS
   ============================================ */
.skill-groups{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:26px; }
.skill-groups h4{ font-family: var(--font-mono); font-size:0.68rem; text-transform:uppercase; letter-spacing:0.06em; color: var(--muted); margin:0 0 12px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer{ margin-top:20px; padding: 56px 0 34px; background: linear-gradient(180deg, transparent, var(--violet-soft) 250%); }
.footer-panel{ background: var(--ink); border-radius: 28px; padding: 44px var(--pad); color:#fff; }
.footer-grid{ display:grid; grid-template-columns:1.2fr 1fr 1fr; gap:36px; }
.footer-grid h4{ font-family: var(--font-mono); font-size:0.68rem; text-transform:uppercase; letter-spacing:0.06em; color:#9CA3D6; margin:0 0 12px; }
.footer-grid a{ display:block; padding:5px 0; font-size:0.95rem; color:#E7E8FA; transition: color .15s ease; }
.footer-grid a:hover{ color: var(--cyan); text-decoration:none; }
.footer-bottom{ margin-top:36px; padding-top:20px; border-top:1px solid rgba(255,255,255,0.12); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-family: var(--font-mono); font-size:0.76rem; color:#9CA3D6; }
@media (max-width:760px){ .footer-grid{ grid-template-columns:1fr; } }

.plain-page{ max-width:760px; margin:0 auto; padding:64px var(--pad); }

/* ============================================
   PAGE HERO (smaller hero for Publications / Contact templates)
   ============================================ */
.page-hero{ position:relative; padding: clamp(50px,7vw,84px) 0 clamp(30px,5vw,50px); overflow:hidden; }
.page-hero .wrap{ position:relative; z-index:1; }
.page-hero h1{ font-family: var(--font-head); font-weight:700; font-size: clamp(2rem,4.4vw,3.1rem); line-height:1.1; margin:16px 0 0; }
.page-hero p{ color: var(--muted); font-size:1.05rem; max-width:60ch; margin:16px 0 0; }

/* ============================================
   FILTER BAR (Publications template)
   ============================================ */
.filter-bar{ display:flex; flex-wrap:wrap; gap:10px; margin: 34px 0 8px; }
.filter-chip{
  font-family: var(--font-body); font-weight:700; font-size:0.86rem; padding:10px 20px; border-radius:999px;
  background:#fff; border:1.5px solid var(--line); color: var(--muted); cursor:pointer; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.filter-chip:hover{ transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--violet); border-color: var(--violet); }
.filter-chip.is-active{ background: var(--grad); border-color:transparent; color:#fff; box-shadow: var(--shadow-md); }
.filter-chip.is-active:hover{ color:#fff; transform: translateY(-2px) scale(1.03); }
.pub-card{ transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease; }
.pub-card.is-hidden{ display:none; }

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-grid{ display:grid; grid-template-columns: 1fr 1.2fr; gap:24px; align-items:start; }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-cards{ display:grid; gap:14px; }
.contact-card{
  background:#fff; border-radius:var(--r); padding:20px 22px; box-shadow: var(--shadow-sm);
  display:flex; align-items:center; gap:16px; transition: transform .2s ease, box-shadow .2s ease;
}
.contact-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card .ic{
  width:44px; height:44px; border-radius:13px; background: var(--grad); color:#fff; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-family: var(--font-head); font-weight:700;
}
.contact-card .lbl{ font-family: var(--font-mono); font-size:0.68rem; text-transform:uppercase; letter-spacing:0.05em; color: var(--muted); }
.contact-card .val{ font-weight:600; font-size:0.98rem; margin-top:1px; }

.form-panel{ background:#fff; border-radius:24px; padding: clamp(24px,3vw,36px); box-shadow: var(--shadow-md); }
.form-row{ margin-bottom:18px; }
.form-row label{ display:block; font-family: var(--font-mono); font-size:0.72rem; text-transform:uppercase; letter-spacing:0.05em; color: var(--muted); margin-bottom:7px; }
.form-row input, .form-row textarea{
  width:100%; font-family: var(--font-body); font-size:0.98rem; padding:13px 16px; border-radius:14px;
  border:1.5px solid var(--line); background: var(--bg); color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.form-row input:focus, .form-row textarea:focus{ outline:none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
.form-row textarea{ resize:vertical; min-height:140px; }
.form-submit{ font-family: var(--font-body); font-weight:700; font-size:0.95rem; padding:14px 26px; border-radius:999px; background: var(--grad); color:#fff; border:none; cursor:pointer; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.form-submit:hover{ transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-md); }
.form-note{ font-size:0.82rem; color: var(--muted); margin-top:12px; }
