/* ============================================
   CSS Variables & Theme
   ============================================ */
:root {
  /* Colors */
  --color-primary: #4F46E5;
  --color-primary-light: #818CF8;
  --color-primary-lighter: #A5B4FC;
  --color-primary-dark: #3730A3;
  --color-accent: #7C3AED;
  --color-accent-light: #A78BFA;

  --bg-deep: #0A0E17;
  --bg-primary: #0F172A;
  --bg-secondary: #1E293B;
  --bg-card: rgba(30, 41, 59, 0.6);
  --bg-card-hover: rgba(30, 41, 59, 0.85);

  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-accent: #A5B4FC;

  --border-color: rgba(148, 163, 184, 0.12);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Noto Sans CJK SC', sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', 'SF Mono', monospace;

  /* Spacing */
  --section-padding: 120px 0;
  --container-max: 1100px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-default: 0.3s var(--ease-out);
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-secondary) var(--bg-deep);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

.hidden { display: none !important; }

/* ============================================
   Particle Canvas
   ============================================ */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  transition: opacity 1.2s var(--ease-out);
}

#particleCanvas.fading {
  opacity: 0;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 24px;
  transition: all 0.3s var(--ease-out);
}

#navbar.scrolled {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary-light);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-admin-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.nav-admin-btn:hover {
  color: var(--text-primary);
  background: rgba(148, 163, 184, 0.1);
}

.nav-icon { width: 20px; height: 20px; }

/* ============================================
   Hero Section
   ============================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  z-index: 2;
  overflow: hidden;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 1.5s var(--ease-out);
}

/* Stage 2: dynamic gradient */
.hero-bg-layer.gradient-active {
  opacity: 1;
  background: linear-gradient(135deg, #0F172A, #1E1B4B, #0F172A, #1E1B4B);
  background-size: 400% 400%;
  animation: gradientFlow 5s ease-in-out infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Stage 3: static deep */
.hero-bg-layer.static-active {
  opacity: 1;
  background: var(--bg-deep);
}

.hero-content {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Avatar */
.hero-avatar-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s var(--ease-out) 0.1s;
}

.hero-avatar-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent), var(--color-primary-light));
  animation: ringRotate 4s linear infinite;
  filter: blur(4px);
  opacity: 0.5;
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-avatar {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
  border: 3px solid rgba(255,255,255,0.08);
}

/* Name */
.hero-name {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s var(--ease-out) 0.3s;
}

.hero-name.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tagline + Typewriter */
.hero-tagline-wrapper {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 32px;
}

.hero-tagline {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-secondary);
}

.typewriter-cursor {
  font-size: 20px;
  font-weight: 300;
  color: var(--color-primary-light);
  animation: blink 0.8s step-end infinite;
}

.typewriter-cursor.stopped {
  animation: none;
  opacity: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Bio */
.hero-bio {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 560px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s var(--ease-out) 0.5s;
}

.hero-bio.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tags */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s var(--ease-out) 0.7s;
}

.hero-tags.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-tag {
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(79, 70, 229, 0.15);
  color: var(--color-primary-lighter);
  border: 1px solid rgba(79, 70, 229, 0.25);
  backdrop-filter: blur(4px);
  transition: all 0.2s;
}

.hero-tag:hover {
  background: rgba(79, 70, 229, 0.25);
  border-color: rgba(79, 70, 229, 0.4);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
}

.scroll-icon {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* ============================================
   Section Shared Styles
   ============================================ */
.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

section {
  padding: var(--section-padding);
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 56px;
}

/* ============================================
   Fade-In (IntersectionObserver triggered)
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--ease-out);
}

.fade-in-stagger > *.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   3D Tilt Cards (Skills + Projects)
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.tilt-card {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.tilt-card-inner {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease-out), transform 0.6s var(--ease-out);
  cursor: default;
}

.tilt-card-inner:hover {
  box-shadow: 0 0 40px rgba(79, 70, 229, 0.25), 0 0 80px rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.25);
}

/* Gloss highlight layer */
.tilt-card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(circle at var(--highlight-pos, 50% 50%), rgba(255,255,255,0.1) 0%, transparent 65%);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s;
  opacity: 0;
}

.tilt-card-inner:hover::before {
  opacity: 1;
}

/* Card content */
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(79, 70, 229, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 3;
}

.card-icon svg,
.card-svg-icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary-lighter);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  position: relative;
  z-index: 3;
}

.card-category {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-primary-lighter);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  position: relative;
  z-index: 3;
}

/* Skill progress bar */
.skill-bar-wrapper {
  position: relative;
  z-index: 3;
}

.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.skill-bar {
  height: 6px;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 100px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: 100px;
  width: 0;
  transition: width 1.2s var(--ease-out);
}

/* Project card extras */
.card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
  position: relative;
  z-index: 3;
}

.card-status.active {
  background: rgba(34, 197, 94, 0.12);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.card-status.active::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  animation: pulse 1.5s ease-in-out infinite;
}

.card-status.completed {
  background: rgba(79, 70, 229, 0.12);
  color: var(--color-primary-lighter);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
  position: relative;
  z-index: 3;
}

.card-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
  z-index: 3;
}

.card-tech-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary-light);
  margin-top: 14px;
  transition: gap 0.2s;
  position: relative;
  z-index: 3;
}

.card-link:hover { gap: 8px; }
.card-link svg,
.card-link-icon { width: 14px; height: 14px; }

/* ============================================
   Timeline
   ============================================ */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-accent), transparent);
}

.timeline-item {
  position: relative;
  padding: 0 0 40px 32px;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.5s var(--ease-out);
}

.timeline-item.visible {
  opacity: 1;
  transform: scale(1);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--bg-deep);
  box-shadow: 0 0 12px rgba(79, 70, 229, 0.5);
}

.timeline-date {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary-lighter);
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   Blog List
   ============================================ */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-item {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.06);
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.blog-item:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(79, 70, 229, 0.2);
  transform: translateX(4px);
}

.blog-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.blog-item-title {
  font-size: 17px;
  font-weight: 600;
}

.blog-item-date {
  font-size: 13px;
  color: var(--text-muted);
}

.blog-item-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.4s ease;
}

.blog-item.expanded .blog-item-excerpt {
  max-height: 200px;
  margin-top: 12px;
}

.blog-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.blog-item-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--color-primary-lighter);
}

/* ============================================
   Contact Grid
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.06);
  transition: all 0.3s var(--ease-out);
}

.contact-item:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(79, 70, 229, 0.2);
  transform: translateY(-2px);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(79, 70, 229, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary-lighter);
}

.contact-info-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-info-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.contact-info-value a {
  color: var(--color-primary-light);
  transition: color 0.2s;
}

.contact-info-value a:hover {
  color: var(--color-primary-lighter);
}

/* ============================================
   Parallax Background Blobs
   ============================================ */
.parallax-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.parallax-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.08;
  will-change: transform;
}

.parallax-blob-1 {
  width: 400px;
  height: 400px;
  background: var(--color-primary);
  top: 10%;
  right: -100px;
}

.parallax-blob-2 {
  width: 350px;
  height: 350px;
  background: var(--color-accent);
  bottom: 20%;
  left: -120px;
}

/* ============================================
   Footer
   ============================================ */
footer {
  text-align: center;
  padding: 48px 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.06);
}

footer p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   Admin Panel
   ============================================ */
.admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.3s var(--ease-out);
}

.admin-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.admin-modal {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-color);
}

.admin-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.admin-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.admin-close-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

/* Login */
.admin-login {
  padding: 48px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 320px;
}

.admin-login-form label {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
}

.admin-login-form input {
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.admin-login-form input:focus {
  border-color: var(--color-primary);
}

.admin-error {
  font-size: 13px;
  color: #F87171;
  text-align: center;
}

/* Editor */
.admin-editor {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.admin-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  padding: 0 28px;
  gap: 0;
  overflow-x: auto;
}

.admin-tab {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.admin-tab:hover { color: var(--text-secondary); }
.admin-tab.active { color: var(--color-primary-light); border-bottom-color: var(--color-primary); }

.admin-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

.admin-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.admin-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-item-label {
  font-size: 14px;
  font-weight: 600;
}

.admin-item-actions {
  display: flex;
  gap: 6px;
}

.admin-btn-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--text-muted);
  transition: all 0.2s;
  font-size: 14px;
}

.admin-btn-icon:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.admin-btn-icon.delete:hover { color: #F87171; background: rgba(248,113,113,0.1); }

.admin-field {
  margin-bottom: 12px;
}

.admin-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.admin-field textarea {
  min-height: 60px;
  resize: vertical;
}

.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus {
  border-color: var(--color-primary);
}

.admin-add-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px dashed var(--border-color);
  color: var(--text-muted);
  font-size: 14px;
  transition: all 0.2s;
}

.admin-add-btn:hover {
  color: var(--color-primary-light);
  border-color: rgba(79, 70, 229, 0.3);
  background: rgba(79, 70, 229, 0.05);
}

/* Admin Actions Row */
.admin-actions {
  display: flex;
  gap: 10px;
  padding: 20px 28px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  transition: all 0.3s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-light);
  background: rgba(79, 70, 229, 0.05);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(248, 113, 113, 0.2);
  color: #FCA5A5;
  transition: all 0.2s;
}

.btn-danger:hover {
  border-color: #F87171;
  background: rgba(248, 113, 113, 0.08);
}

.btn-icon-sm { width: 14px; height: 14px; }

/* ============================================
   Toast
   ============================================ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  z-index: 3000;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
}

.toast.success {
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ADE80;
}

.toast.error {
  border-color: rgba(248, 113, 113, 0.3);
  color: #FCA5A5;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }

  .hero-name { font-size: 36px; }
  .hero-tagline { font-size: 17px; }
  .hero-avatar-wrapper { width: 150px; height: 150px; }
  .hero-avatar { width: 150px; height: 150px; }

  .section-title { font-size: 28px; }
  section { padding: 80px 0; }

  .cards-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .admin-modal { max-height: 95vh; border-radius: 12px; }
  .admin-tabs { padding: 0 16px; }
  .admin-panel-content { padding: 16px; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 28px; }
  .hero-tagline { font-size: 15px; }
  .hero-bio { font-size: 14px; }

  .section-title { font-size: 24px; }
  .section-subtitle { font-size: 14px; }
}
