/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --accent: #10b981;
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a2e;
  --card: #16161f;
  --card2: #1e1e2e;
  --border: rgba(255,255,255,0.08);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --gradient: linear-gradient(135deg, #6366f1, #ec4899);
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
  --radius: 16px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.navbar.scrolled { padding: 0.75rem 2rem; box-shadow: 0 4px 30px rgba(0,0,0,0.4); }
.nav-brand {
  font-size: 1.5rem; font-weight: 800;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s; position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--gradient); transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 6rem 2rem 4rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,102,241,0.15) 0%, transparent 70%),
              radial-gradient(ellipse 60% 40% at 80% 80%, rgba(236,72,153,0.1) 0%, transparent 60%);
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-content {
  position: relative; z-index: 1; display: flex; align-items: center;
  gap: 4rem; max-width: 1100px; width: 100%;
}
.hero-avatar { position: relative; flex-shrink: 0; }
.avatar-ring {
  width: 220px; height: 220px; border-radius: 50%;
  padding: 4px;
  background: var(--gradient);
  box-shadow: 0 0 60px rgba(99,102,241,0.4);
  animation: float 4s ease-in-out infinite;
}
.avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--bg3); }
.status-dot {
  position: absolute; bottom: 12px; right: 12px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #10b981; border: 3px solid var(--bg);
  animation: pulse 2s infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(16,185,129,0.4)} 50%{box-shadow:0 0 0 8px rgba(16,185,129,0)} }

.hero-text { flex: 1; }
.hero-greeting { color: var(--text-muted); font-size: 1rem; font-weight: 500; margin-bottom: 0.5rem; }
.hero-name {
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.1;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 0.75rem;
}
.hero-role { font-size: 1.3rem; color: var(--text-muted); margin-bottom: 1rem; }
.role-prefix { color: var(--text-muted); }
.typed-text { color: var(--primary); font-weight: 600; }
.cursor { color: var(--primary); animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-desc { color: var(--text-muted); max-width: 520px; margin-bottom: 2rem; font-size: 1rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2rem; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.8rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border: 2px solid var(--border); border-radius: 12px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-dot { width: 4px; height: 8px; background: var(--primary); border-radius: 2px; animation: scroll-anim 2s infinite; }
@keyframes scroll-anim { 0%{transform:translateY(0);opacity:1} 100%{transform:translateY(14px);opacity:0} }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: 50px; font-weight: 600;
  font-size: 0.9rem; text-decoration: none; cursor: pointer; border: none;
  transition: all 0.3s; white-space: nowrap;
}
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,0.5); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.w-full { width: 100%; justify-content: center; }

/* ===== SECTIONS ===== */
.section { padding: 6rem 2rem; }
.section-alt { background: var(--bg2); }
.container { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  display: inline-block; padding: 0.35rem 1rem; border-radius: 50px;
  background: rgba(99,102,241,0.15); color: var(--primary);
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 20px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--primary), var(--secondary), transparent);
}
.timeline-item { position: relative; margin-bottom: 2.5rem; padding-left: 3rem; }
.timeline-icon {
  position: absolute; left: -2.5rem; top: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; box-shadow: 0 0 20px rgba(99,102,241,0.4);
  z-index: 1;
}
.timeline-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; transition: all 0.3s;
}
.timeline-card:hover { border-color: var(--primary); transform: translateX(4px); box-shadow: var(--shadow); }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.card-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.institution { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.75rem; }
.institution i { margin-right: 0.4rem; color: var(--primary); }
.detail { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }

/* ===== BADGES & TAGS ===== */
.badge {
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: 50px;
  font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
.badge-primary { background: rgba(99,102,241,0.2); color: var(--primary); }
.badge-secondary { background: rgba(148,163,184,0.15); color: var(--text-muted); }
.badge-green { background: rgba(16,185,129,0.2); color: #10b981; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag {
  padding: 0.25rem 0.75rem; border-radius: 50px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  font-size: 0.75rem; color: var(--text-muted);
}

/* ===== INTERNSHIP ===== */
.internship-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.5rem; display: flex; gap: 3rem; align-items: flex-start;
  transition: all 0.3s;
}
.internship-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.internship-left { display: flex; flex-direction: column; align-items: center; gap: 1rem; min-width: 140px; text-align: center; }
.company-logo {
  width: 80px; height: 80px; border-radius: var(--radius);
  background: var(--gradient); display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #fff;
}
.internship-meta h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.company-name { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.75rem; }
.internship-right { flex: 1; }
.internship-detail { display: flex; align-items: center; gap: 0.5rem; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.25rem; }
.internship-detail i { color: var(--primary); }
.internship-points { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.internship-points li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--text-muted); font-size: 0.9rem; }
.internship-points li i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }

/* ===== PROJECTS ===== */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.75rem; }
.project-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all 0.3s; position: relative;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(99,102,241,0.4); }
.project-card.featured { border-color: rgba(236,72,153,0.3); }
.featured-badge {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  background: var(--gradient); color: #fff; padding: 0.2rem 0.75rem;
  border-radius: 50px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
}
.project-header {
  padding: 1.75rem 1.75rem 0;
  display: flex; align-items: center; justify-content: space-between;
}
.project-icon {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  background: rgba(99,102,241,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--accent, var(--primary));
}
.project-links { display: flex; gap: 0.75rem; }
.project-links a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); text-decoration: none; transition: all 0.2s;
}
.project-links a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.project-body { padding: 1.25rem 1.75rem 1.75rem; }
.project-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.project-body p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.7; }
.project-features { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.project-features span { font-size: 0.82rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; }
.project-features span i { color: var(--primary); font-size: 0.6rem; }

/* ===== TRAINING ===== */
.training-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.training-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; transition: all 0.3s; text-align: center;
}
.training-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow); }
.training-icon {
  width: 64px; height: 64px; border-radius: var(--radius);
  background: rgba(99,102,241,0.1); display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--color, var(--primary)); margin: 0 auto 1.25rem;
  border: 1px solid rgba(99,102,241,0.2);
}
.training-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.training-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; margin-bottom: 1rem; }

/* ===== CERTIFICATIONS ===== */
.certs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.cert-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; display: flex; align-items: center; gap: 1.25rem;
  transition: all 0.3s;
}
.cert-card:hover { transform: translateX(4px); border-color: var(--primary); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.cert-logo {
  width: 52px; height: 52px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: rgba(99,102,241,0.1); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--color, var(--primary));
}
.cert-info { flex: 1; }
.cert-info h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem; }
.cert-info p { color: var(--text-muted); font-size: 0.82rem; }
.cert-year { font-size: 0.75rem; color: var(--primary); font-weight: 600; }
.cert-badge { color: var(--primary); font-size: 1.2rem; opacity: 0.6; }

/* ===== HACKATHONS ===== */
.hackathon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 1.75rem; }
.hackathon-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; display: flex; gap: 1.5rem; transition: all 0.3s;
}
.hackathon-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-4px); }
.hack-rank { font-size: 2.5rem; flex-shrink: 0; }
.hack-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.hack-org { color: var(--primary); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.75rem; }
.hack-org i { margin-right: 0.4rem; }
.hack-info p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.6; }
.hack-date { font-size: 0.8rem; color: var(--text-dim); }
.hack-date i { margin-right: 0.4rem; }

/* ===== SKILLS ===== */
.skills-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.skills-category {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem;
}
.cat-title { font-size: 1rem; font-weight: 700; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.cat-title i { color: var(--primary); }
.skill-bars { display: flex; flex-direction: column; gap: 1.25rem; }
.skill-bar { display: block; }
.skill-info { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.9rem; }
.skill-info span:last-child { color: var(--primary); font-weight: 600; }
.bar { height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.bar-fill {
  height: 100%; width: 0; border-radius: 4px;
  background: var(--color, var(--gradient));
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
}
.bar-fill.animated { width: var(--w); }
.skill-pills { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.skill-pill {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 50px;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
  color: var(--text); font-size: 0.85rem; transition: all 0.2s;
}
.skill-pill:hover { background: rgba(99,102,241,0.2); transform: translateY(-2px); }
.skill-pill i { color: var(--primary); }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tool-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-muted); transition: all 0.2s;
}
.tool-item i { font-size: 1.4rem; color: var(--primary); }
.tool-item:hover { background: rgba(99,102,241,0.1); color: var(--text); transform: translateY(-2px); }

/* ===== RESUME ===== */
.resume-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(236,72,153,0.05));
  border-color: rgba(99,102,241,0.3);
}
.resume-left { display: flex; align-items: center; gap: 1.5rem; }
.resume-icon { font-size: 3rem; color: var(--primary); }
.resume-left h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.resume-left p { color: var(--text-muted); }

/* ===== CONTACT ===== */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-intro { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.7; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text); transition: all 0.2s;
}
.contact-item:hover { border-color: var(--primary); transform: translateX(4px); }
.contact-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: rgba(99,102,241,0.1); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--color, var(--primary));
}
.contact-label { display: block; font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.contact-value { font-size: 0.9rem; font-weight: 500; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.form-group input, .form-group textarea {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.875rem 1rem; color: var(--text); font-family: inherit; font-size: 0.9rem;
  transition: border-color 0.2s; resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-dim); }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 2rem; text-align: center;
}
.footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer p { color: var(--text-muted); font-size: 0.9rem; }
.highlight { color: var(--primary); font-weight: 600; }
.footer-links { display: flex; gap: 1rem; }
.footer-links a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); text-decoration: none; transition: all 0.2s;
}
.footer-links a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== AOS ANIMATIONS ===== */
[data-aos] { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-content { flex-direction: column; text-align: center; gap: 2rem; }
  .hero-desc { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .internship-card { flex-direction: column; }
  .hackathon-grid { grid-template-columns: 1fr; }
  .resume-card { flex-direction: column; text-align: center; }
  .resume-left { flex-direction: column; text-align: center; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg2); padding: 1.5rem; border-bottom: 1px solid var(--border); gap: 1rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .avatar-ring { width: 160px; height: 160px; }
  .section { padding: 4rem 1.25rem; }
  .timeline { padding-left: 1rem; }
  .timeline-item { padding-left: 2rem; }
  .timeline-icon { left: -1.75rem; width: 36px; height: 36px; font-size: 0.85rem; }
}
@media (max-width: 480px) {
  .projects-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== CUSTOM CURSOR ===== */
@media (pointer: fine) {
  *, a, button { cursor: none !important; }
}

/* ===== HERO CANVAS ===== */
.hero { position: relative; }
#particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-content { position: relative; z-index: 1; }

/* ===== CERT VIEW BUTTON ===== */
.cert-view-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.9rem; border-radius: 50px;
  background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.3);
  color: var(--primary); font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; white-space: nowrap; flex-shrink: 0;
}
.cert-view-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== CERTIFICATE MODAL ===== */
.cert-modal {
  display: none; position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 1.5rem;
}
.cert-modal.active { display: flex; }
.cert-modal-box {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; max-width: 860px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cert-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: rgba(255,255,255,0.05); color: var(--text); font-size: 1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.cert-modal-close:hover { background: #ef4444; border-color: #ef4444; color: #fff; }
.cert-modal-title {
  font-size: 1rem; font-weight: 700; color: var(--text);
  margin-bottom: 1rem; padding-right: 2.5rem;
}
.cert-modal-box img {
  width: 100%; border-radius: var(--radius-sm);
  border: 1px solid var(--border); display: block;
}
.cert-modal-box iframe {
  width: 100%; height: 75vh; border-radius: var(--radius-sm);
  border: 1px solid var(--border); display: block;
}
