/* ============================================================
   AROM KHADKA PORTFOLIO — style.css
   Aesthetic: Dark-primary editorial with amber accent
   ============================================================ */

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --bg: #0a0a0f;
  --bg-alt: #0f0f18;
  --surface: #14141e;
  --surface2: #1c1c2a;
  --border: #2a2a3a;
  --text: #e8e6f0;
  --text-muted: #8a8898;
  --accent: oklch(85.046% 0.22749 150.002);
  --accent-dim: #f5a62322;
  --accent2: #5b8af5;
  --green: #4ade80;
  --red: #f87171;

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.5);

  --nav-h: 68px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="light"] {
  --bg: #f5f4f0;
  --bg-alt: #eeede9;
  --surface: #ffffff;
  --surface2: #f0efe9;
  --border: #dddbd2;
  --text: #1a1a26;
  --text-muted: #68667a;
  --accent: #d4830a;
  --accent-dim: #d4830a18;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { color: var(--text-muted); }

/* ── LAYOUT ─────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 7rem 0; }
.section-alt { background: var(--bg-alt); }

/* ── SECTION HEADER ─────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.3em 1em;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.section-title {
  color: var(--text);
}
.accent { color: var(--accent); }
.dot { color: var(--accent); }

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  z-index: 1000;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
[data-theme="light"] .navbar {
  background: rgba(245,244,240,0.9);
}
.nav-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-brand a { color: inherit; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
  flex: 1;
  justify-content: center;
}
.nav-links li a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links li a:hover,
.nav-links li a.active { color: var(--text); background: var(--surface2); }
.notehub-link {
  color: var(--accent) !important;
  border: 1px solid var(--accent-dim);
  border-radius: 8px;
}
.notehub-link:hover { background: var(--accent-dim) !important; }

.theme-toggle {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: background var(--transition);
}
.theme-toggle:hover { background: var(--surface2); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--accent);
  color: #0a0a0f;
}
.btn-primary:hover { background: #fbb034; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,166,35,0.3); }
.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-sm:hover { border-color: var(--accent); color: var(--accent); }
.btn-full { width: 100%; justify-content: center; }

/* ── HERO SECTION ────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#heroCanvas {
  width: 100%; height: 100%;
  opacity: 0.35;
}
/* HERO MAIN LAYOUT */
.hero-container{
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    padding: 120px 60px 60px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 80px;
}

/* LEFT SIDE */
.hero-content{
    flex: 1;
    max-width: 700px;
}

/* RIGHT SIDE */
.hero-image{
    flex: 1;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* PROFILE IMAGE */
.image-wrapper{
    width: 420px;
    height: 420px;

    border-radius: 50%;

    padding: 8px;

    background: linear-gradient(
        135deg,
        #ff9900,
        #ffcc00,
        #ff9900
    );

    box-shadow:
        0 0 30px rgba(255,153,0,0.3),
        0 0 60px rgba(255,153,0,0.2);
}

.image-wrapper{
    position: relative;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* GLOWING ANIMATED BORDER */
.image-wrapper::before{
    content: "";

    position: absolute;
    inset: -8px;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #ff9900,
        #ffcc00,
        #7c3aed,
        #00f5ff,
        #ff9900
    );

    background-size: 300% 300%;

    animation: gradientRotate 6s ease infinite;

    z-index: 0;

    filter: blur(2px);
}

.image-wrapper img{
    position: relative;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    border: 6px solid #0f172a;

    z-index: 1;
}

/* ONLY BORDER ANIMATION */
@keyframes gradientRotate{
    0%{
        background-position: 0% 50%;
    }

    50%{
        background-position: 100% 50%;
    }

    100%{
        background-position: 0% 50%;
    }
}
@media(max-width: 992px){

    .hero-container{
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 140px;
    }

    .hero-buttons{
        justify-content: center;
    }

    .image-wrapper{
        width: 280px;
        height: 280px;
    }

    .hero-name{
        font-size: 4rem;
    }
}
.hero-greeting {
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.hero-name {
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero-title {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.hero-tagline {
  font-size: 1.2rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 2.5rem;
  opacity: 0.85;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 1;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{ opacity:0.3; transform: scaleY(1); } 50%{ opacity:1; transform: scaleY(1.2); } }

/* ── FADE IN ANIMATION ───────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── SCROLL REVEAL ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── ABOUT SECTION ───────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}
.about-bio {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
}
.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.875rem;
}
.detail-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
}
.social-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}
.social-card h3 {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover { border-color: var(--accent); color: var(--accent); transform: translateX(4px); }


/* ── SKILLS SECTION ──────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.skill-category:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.skill-cat-icon { font-size: 1.5rem; }
.skill-cat-header h3 { color: var(--text); margin: 0; }
.skill-cards { display: flex; flex-direction: column; gap: 1rem; }
.skill-card { }
.skill-name { font-size: 0.875rem; font-weight: 500; color: var(--text); display: block; margin-bottom: 0.4rem; }
.skill-bar {
  height: 4px;
  background: var(--surface2);
  border-radius: 4px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.4,0,0.2,1) 0.3s;
}
.skill-fill.animated { width: var(--w); }

/* ── TIMELINE (EXPERIENCE) ───────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
}
.timeline-item {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}
.timeline-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  flex-shrink: 0;
  margin-top: 0.2rem;
  position: relative;
  z-index: 1;
}
.timeline-dot::after {
  content: '';
  position: absolute;
  inset: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  flex: 1;
  transition: transform var(--transition), border-color var(--transition);
}
.timeline-content:hover { transform: translateX(4px); border-color: var(--accent); }
.timeline-period {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}
.timeline-content h3 { color: var(--text); margin-bottom: 0.3rem; font-size: 1.1rem; }
.timeline-org { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 0.75rem; font-style: italic; }
.timeline-content > p { font-size: 0.9rem; }

/* ── PROJECTS SECTION ────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.project-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-dim);
  line-height: 1;
}
.project-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25em 0.75em;
  border-radius: 100px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.project-card h3 {
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.project-section { margin-bottom: 1.25rem; }
.project-section h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}
.project-section p { font-size: 0.9rem; }

/* ── DASHBOARDS SECTION ──────────────────────────────────────── */
.dashboards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.dashboard-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dashboard-preview {
  height: 220px;
  background: linear-gradient(135deg, var(--surface2) 0%, var(--bg-alt) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}
.dashboard-placeholder {
  text-align: center;
  color: var(--text-muted);
}
.db-icon { font-size: 3rem; display: block; margin-bottom: 0.5rem; }
.dashboard-placeholder p { font-size: 0.9rem; }
.dashboard-info { padding: 1.75rem; }
.dashboard-info h3 { color: var(--text); margin-bottom: 1.25rem; }
.db-section { margin-bottom: 1rem; }
.db-section strong { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); display: block; margin-bottom: 0.4rem; }
.db-section p { font-size: 0.875rem; }
.db-section ul { list-style: none; padding: 0; }
.db-section ul li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}
.db-section ul li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-size: 0.8rem; }
.tool-badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.3em 1em;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── GITHUB SECTION ──────────────────────────────────────────── */
.github-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #0a0a0f; }
.repos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.repo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform var(--transition), border-color var(--transition);
}
.repo-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.repo-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
}
.repo-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
}
.repo-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}
.repo-category-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2em 0.7em;
  border-radius: 100px;
  background: var(--accent-dim);
  color: var(--accent);
}
.repo-link {
  font-size: 0.8rem;
  color: var(--accent2);
  font-weight: 600;
}
.repo-link:hover { text-decoration: underline; }
.repo-loading, .repo-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

/* ── CONTACT SECTION ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); opacity: 0.6; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-icon { font-size: 1.25rem; margin-top: 0.1rem; }
.contact-item strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.25rem; }
.contact-item p { font-size: 0.9rem; color: var(--text); margin: 0; }
.contact-social {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.contact-social-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
}
.contact-social-link:hover { border-color: var(--accent); color: var(--accent); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer p { font-size: 0.9rem; }
.footer strong { color: var(--text); }
.footer-sub { font-size: 0.8rem; margin-top: 0.5rem; }
.footer a { color: var(--accent); }

/* ── NOTEHUB SPECIFIC ────────────────────────────────────────── */
.notehub-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 3rem) 2rem 4rem;
  background: radial-gradient(ellipse at top, rgba(245,166,35,0.08) 0%, transparent 60%);
}
.notehub-hero-content { max-width: 700px; }
.notehub-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4em 1.2em;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}
.notehub-hero h1 { margin-bottom: 1rem; }
.notehub-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.notehub-search {
  display: flex;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}
.notehub-search input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.notehub-search input:focus { outline: none; border-color: var(--accent); }
.notehub-search input::placeholder { color: var(--text-muted); opacity: 0.6; }

/* ── GRADE TABS ──────────────────────────────────────────────── */
.grade-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
.grade-tab {
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-display);
  transition: all var(--transition);
}
.grade-tab:hover { color: var(--text); }
.grade-tab.active {
  background: var(--accent);
  color: #0a0a0f;
  border-color: var(--accent);
}

/* ── NOTES CONTAINER ─────────────────────────────────────────── */
.notes-container { min-height: 200px; }

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* Base card */
.note-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.note-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Card with PDF available gets a subtle accent left-border */
.note-card--ready {
  border-left: 3px solid var(--accent);
}
.note-card--ready:hover {
  border-color: var(--accent);
}

/* Header row: chapter number + status badge */
.note-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.note-card__num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.note-card__status {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2em 0.65em;
  border-radius: 100px;
}
.note-card__status--ready {
  background: rgba(74, 222, 128, 0.12);
  color: var(--green);
}
.note-card__status--pending {
  background: var(--surface2);
  color: var(--text-muted);
}

/* Chapter title */
.note-card__title {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
}

/* Action row — sits at the bottom */
.note-card__action {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* Download link */
.note-download {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.01em;
  transition: gap var(--transition), opacity var(--transition);
}
.note-download:hover {
  gap: 0.65rem;
  opacity: 0.85;
}

/* Coming-soon label */
.note-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.notes-loading { padding: 3rem; text-align: center; color: var(--text-muted); }
.notes-empty   { padding: 3rem; text-align: center; color: var(--text-muted); }

/* ── SYLLABUS SECTION ────────────────────────────────────────── */
.syllabus-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}
.syllabus-intro p { font-size: 1rem; }
.syllabus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.syllabus-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--transition);
}
.syllabus-card:hover { transform: translateY(-4px); }
.syllabus-grade {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.25em 0.75em;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}
.syllabus-card h3 { color: var(--text); margin-bottom: 1rem; }
.syllabus-card ul { list-style: none; }
.syllabus-card li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  padding-left: 1rem;
  position: relative;
}
.syllabus-card li:last-child { border-bottom: none; }
.syllabus-card li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); font-size: 0.7rem; top: 0.5rem; }

/* ── TEACHING SECTION ────────────────────────────────────────── */
.teaching-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
}
.teaching-text h3 { color: var(--text); margin-bottom: 1rem; }
.teaching-text p { margin-bottom: 1rem; }
.course-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }
.course-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}
.course-grade {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.2em 0.6em;
  border-radius: 4px;
  white-space: nowrap;
}
.teaching-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-social { order: -1; }
  .social-card { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 0.75rem 1rem; }
  .nav-toggle { display: flex; }

  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .dashboards-grid { grid-template-columns: 1fr; }
  .syllabus-grid { grid-template-columns: 1fr; }
  .teaching-grid { grid-template-columns: 1fr; }
  .teaching-stats { position: static; }
  .about-details { grid-template-columns: 1fr; }

  .timeline::before { left: 16px; }
  .timeline-dot { width: 34px; height: 34px; }

  .notehub-search { flex-direction: column; }
  .grade-tabs { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 5rem 0; }
  h1 { font-size: 3rem; }
  .repos-grid { grid-template-columns: 1fr; }
}
