/* ============================================================
   DESIGN SYSTEM — Green Theme, Dark/Light Mode
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-theme: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   LIGHT THEME — Clean white with green accents
   ============================================================ */
[data-theme="light"] {
  --bg-primary: #f9fafb;
  --bg-secondary: #f3f4f6;
  --bg-tertiary: #e5e7eb;
  --bg-card: #ffffff;
  --bg-card-hover: #f9fafb;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-glass-strong: rgba(255, 255, 255, 0.92);
  --bg-overlay: rgba(0, 0, 0, 0.5);

  --text-primary: #111827;
  --text-secondary: #374151;
  --text-tertiary: #6b7280;
  --text-muted: #9ca3af;
  --text-on-accent: #ffffff;

  --accent-primary: #10b981;
  --accent-secondary: #059669;
  --accent-tertiary: #047857;
  --accent-light: #d1fae5;
  --accent-lighter: #ecfdf5;
  --accent-glow: rgba(16, 185, 129, 0.12);
  --accent-gradient: linear-gradient(135deg, #10b981, #059669);
  --accent-gradient-hover: linear-gradient(135deg, #059669, #047857);

  --border-color: #e5e7eb;
  --border-strong: rgba(16, 185, 129, 0.35);

  --scrollbar-thumb: #10b981;
  --scrollbar-track: #f3f4f6;

  --menu-bar-bg: rgba(255, 255, 255, 0.88);
  --hero-gradient: linear-gradient(180deg, #f9fafb 0%, #ffffff 50%, #f3f4f6 100%);
}

/* ============================================================
   DARK THEME — True black/dark gray with green accents
   ============================================================ */
[data-theme="dark"] {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-card: #141414;
  --bg-card-hover: #1c1c1c;
  --bg-glass: rgba(20, 20, 20, 0.75);
  --bg-glass-strong: rgba(20, 20, 20, 0.92);
  --bg-overlay: rgba(0, 0, 0, 0.75);

  --text-primary: #f1f1f1;
  --text-secondary: #a1a1a1;
  --text-tertiary: #737373;
  --text-muted: #525252;
  --text-on-accent: #ffffff;

  --accent-primary: #34d399;
  --accent-secondary: #10b981;
  --accent-tertiary: #059669;
  --accent-light: #052e23;
  --accent-lighter: #071f18;
  --accent-glow: rgba(52, 211, 153, 0.12);
  --accent-gradient: linear-gradient(135deg, #34d399, #10b981);
  --accent-gradient-hover: linear-gradient(135deg, #10b981, #059669);

  --border-color: #262626;
  --border-strong: rgba(52, 211, 153, 0.3);

  --scrollbar-thumb: #10b981;
  --scrollbar-track: #111111;

  --menu-bar-bg: rgba(10, 10, 10, 0.9);
  --hero-gradient: linear-gradient(180deg, #0a0a0a 0%, #0e0e0e 50%, #111111 100%);
}

/* ============================================================
   THEME TRANSITION
   ============================================================ */
.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
  transition: background-color var(--transition-theme),
              color var(--transition-theme),
              border-color var(--transition-theme),
              box-shadow var(--transition-theme) !important;
}

/* ============================================================
   BASE RESET & TYPOGRAPHY
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--accent-secondary); }

img { max-width: 100%; display: block; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: var(--radius-full);
}

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
#theme-toggle {
  position: fixed;
  top: var(--space-lg);
  left: var(--space-lg);
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--bg-glass-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--accent-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}
#theme-toggle:hover {
  background: var(--accent-primary);
  color: var(--text-on-accent);
  transform: rotate(15deg) scale(1.05);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ============================================================
   RIGHT SIDE PANEL TOGGLE
   ============================================================ */
#side-panel-toggle {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--bg-glass-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--accent-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}
#side-panel-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--transition-base);
}
#side-panel-toggle:hover {
  background: var(--accent-primary);
  color: var(--text-on-accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--hero-gradient);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: heroGlow 6s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

.hero-photo {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(16, 185, 129, 0.08);
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 1;
  animation: photoFloat 4s ease-in-out infinite alternate;
}

@keyframes photoFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.hero-name {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: var(--space-lg);
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.hero-tagline {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--text-tertiary);
  max-width: 500px;
  font-weight: 300;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.hero-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  position: relative;
  z-index: 1;
}

.hero-social a {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  transition: all var(--transition-base);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
}
.hero-social a:hover {
  background: var(--accent-primary);
  color: var(--text-on-accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   INFINITE HORIZONTAL MENU BAR
   ============================================================ */
.menu-bar-wrapper {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--menu-bar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow var(--transition-base);
}

.menu-bar-wrapper.scrolled {
  box-shadow: var(--shadow-md);
}

.menu-bar {
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0;
  cursor: grab;
  user-select: none;
}
.menu-bar::-webkit-scrollbar { display: none; }

.menu-bar-track {
  display: inline-flex;
  animation: menuScroll 20s linear infinite;
  animation-play-state: running;
}

.menu-bar-track:hover {
  animation-play-state: paused;
}

@keyframes menuScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.menu-bar-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
}

.menu-bar-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: var(--border-color);
}

.menu-bar-item:hover {
  color: var(--accent-primary);
  background: var(--accent-glow);
  border-bottom-color: var(--accent-primary);
}

.menu-bar-item.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.menu-bar-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
}

.section {
  margin-bottom: var(--space-4xl);
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.section.visible {
  opacity: 1;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-line {
  flex: 1;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0.3;
  border-radius: var(--radius-full);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--border-color);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
}

.about-content::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 8rem;
  font-weight: 900;
  color: var(--accent-glow);
  font-family: serif;
  line-height: 1;
}

/* ============================================================
   CARD GRID
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: var(--space-xl);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-cover {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--accent-lighter);
  color: var(--accent-secondary);
  border: 1px solid var(--accent-glow);
  letter-spacing: 0.3px;
}

.card-arrow {
  position: absolute;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  transition: all var(--transition-base);
}
.card:hover .card-arrow {
  background: var(--accent-primary);
  color: var(--text-on-accent);
  transform: translateX(3px);
}

/* ============================================================
   EXPERIENCE CARD
   ============================================================ */
.exp-card .card-year {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

/* ============================================================
   SKILLS SECTION — Interactive & Graphical
   ============================================================ */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.skill-category {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.skill-category:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.skill-category-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-primary);
  margin-bottom: var(--space-lg);
}

.skill-item {
  margin-bottom: var(--space-md);
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.skill-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
}

.skill-level {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.skill-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
  position: relative;
}

.skill-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 8px;
  height: 100%;
  background: rgba(255,255,255,0.4);
  border-radius: var(--radius-full);
  animation: skillGlow 1.5s ease-in-out infinite alternate;
}

@keyframes skillGlow {
  0% { opacity: 0.3; }
  100% { opacity: 0.8; }
}

/* Skill Radar Chart */
.skill-radar-container {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-2xl);
}

.skill-radar-container canvas {
  max-width: 400px;
  max-height: 400px;
}

/* Skill Bubbles */
.skill-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-2xl);
}

.skill-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: var(--text-on-accent);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  line-height: 1.2;
}

.skill-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ============================================================
   EDUCATION — Timeline
   ============================================================ */
.timeline {
  position: relative;
  padding-left: var(--space-2xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-gradient);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-2xl);
  padding-left: var(--space-lg);
}

.timeline-dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background: var(--accent-primary);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.timeline-year {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.5px;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.timeline-institution {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.timeline-details {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.timeline-achievement {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.82rem;
  color: var(--accent-primary);
  margin-top: var(--space-xs);
}

/* ============================================================
   CERTIFICATES — Card Grid
   ============================================================ */
.cert-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.cert-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.cert-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: var(--space-md);
  font-size: 1.3rem;
}

.cert-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.cert-issuer {
  font-size: 0.82rem;
  color: var(--accent-primary);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.cert-year {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cert-desc {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: var(--space-sm);
  line-height: 1.5;
}

/* ============================================================
   LEADERSHIP SECTION
   ============================================================ */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.leadership-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.leadership-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.leadership-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.leadership-year {
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.leadership-desc {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* ============================================================
   DETAIL VIEW / MODAL OVERLAY
   ============================================================ */
.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.detail-overlay.active {
  display: flex;
  opacity: 1;
}

.detail-panel {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  animation: detailSlideUp 0.35s ease;
}

@keyframes detailSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.detail-cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 900;
  color: white;
}

.detail-body {
  padding: var(--space-2xl);
}

.detail-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.detail-subtitle {
  font-size: 0.9rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.detail-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.detail-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-primary);
  margin-bottom: var(--space-md);
  margin-top: var(--space-xl);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--accent-glow);
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-base);
  margin-right: var(--space-sm);
  margin-top: var(--space-sm);
}

.detail-link:hover {
  background: var(--accent-primary);
  color: var(--text-on-accent);
}

.detail-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--bg-glass-strong);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: 10;
}
.detail-close:hover {
  background: var(--accent-primary);
  color: var(--text-on-accent);
}

/* ============================================================
   RIGHT SIDE PANEL
   ============================================================ */
.side-panel-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}
.side-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg-card);
  z-index: 1600;
  transform: translateX(100%);
  transition: transform var(--transition-base);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
}

.side-panel.active {
  transform: translateX(0);
}

.side-panel-header {
  padding: var(--space-xl);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.side-panel-title {
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.side-panel-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}
.side-panel-close:hover {
  background: var(--accent-primary);
  color: var(--text-on-accent);
}

.side-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
}

.side-panel-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-bottom: var(--space-xs);
}

.side-panel-nav-item:hover {
  background: var(--accent-glow);
  color: var(--accent-primary);
}

.side-panel-nav-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
  opacity: 0.7;
}

.side-panel-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: var(--space-md) 0;
}

.side-panel-login-btn {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-primary);
  background: var(--accent-glow);
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-primary);
}

.side-panel-login-btn:hover {
  background: var(--accent-primary);
  color: var(--text-on-accent);
}

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
}

.footer-name {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-md);
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-xl);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-base);
}

.footer-link:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-glow);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   LOGIN MODAL
   ============================================================ */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg-overlay);
  backdrop-filter: blur(8px);
}

.login-overlay.active {
  display: flex;
}

.login-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  width: 380px;
  max-width: 90vw;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  animation: detailSlideUp 0.35s ease;
}

.login-title {
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--space-xl);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: var(--space-sm);
  display: none;
}

.login-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--accent-gradient);
  color: var(--text-on-accent);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
}

.login-btn:hover {
  background: var(--accent-gradient-hover);
  box-shadow: 0 4px 16px var(--accent-glow);
  transform: translateY(-1px);
}

.login-cancel {
  display: block;
  text-align: center;
  margin-top: var(--space-md);
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
  background: none;
  border: none;
  font-family: var(--font-primary);
}
.login-cancel:hover {
  color: var(--text-primary);
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2500;
  background: var(--accent-gradient);
  color: var(--text-on-accent);
  padding: 8px var(--space-xl);
  display: none;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.admin-bar.active {
  display: flex;
}

.admin-bar-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.admin-bar-actions {
  display: flex;
  gap: var(--space-sm);
}

.admin-bar-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: white;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.admin-bar-btn:hover {
  background: rgba(255,255,255,0.2);
}

.admin-bar-btn.danger {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.2);
}
.admin-bar-btn.danger:hover {
  background: rgba(239, 68, 68, 0.4);
}

/* Admin Edit Overlay */
.admin-edit-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  background: var(--bg-overlay);
  backdrop-filter: blur(8px);
  padding-top: 60px;
  overflow-y: auto;
}

.admin-edit-overlay.active {
  display: flex;
}

.admin-edit-panel {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  width: 600px;
  max-width: 95vw;
  margin-bottom: var(--space-2xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  animation: detailSlideUp 0.35s ease;
}

.admin-edit-header {
  padding: var(--space-xl);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-edit-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.admin-edit-body {
  padding: var(--space-xl);
  max-height: 65vh;
  overflow-y: auto;
}

.admin-edit-footer {
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

.btn {
  padding: 8px 20px;
  border-radius: var(--radius-md);
  border: none;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--text-on-accent);
}
.btn-primary:hover {
  background: var(--accent-gradient-hover);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  border-color: var(--border-strong);
}

.btn-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
[data-theme="dark"] .btn-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
  background: #dc2626;
  color: white;
}

/* Admin Item List */
.admin-item-list {
  list-style: none;
}

.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: var(--space-sm);
  transition: all var(--transition-fast);
}

.admin-item:hover {
  background: var(--bg-card-hover);
}

.admin-item-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.admin-item-actions {
  display: flex;
  gap: var(--space-xs);
}

.admin-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  font-size: 0.85rem;
}
.admin-icon-btn:hover {
  background: var(--accent-primary);
  color: var(--text-on-accent);
  border-color: var(--accent-primary);
}
.admin-icon-btn.danger:hover {
  background: #dc2626;
  border-color: #dc2626;
}

/* Form textarea */
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  outline: none;
  resize: vertical;
  min-height: 80px;
}
.form-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Tags input */
.tags-input {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  min-height: 42px;
  align-items: center;
}

.tags-input .tag {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tags-input .tag-remove {
  cursor: pointer;
  opacity: 0.6;
  font-size: 0.7rem;
}
.tags-input .tag-remove:hover { opacity: 1; }

.tags-input input {
  flex: 1;
  min-width: 100px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  outline: none;
  padding: 4px;
}

/* ============================================================
   HELP PANEL
   ============================================================ */
.help-content {
  padding: var(--space-lg);
}

.help-section {
  margin-bottom: var(--space-xl);
}

.help-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: var(--space-sm);
}

.help-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.help-list {
  list-style: none;
  padding: 0;
}

.help-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.help-list li::before {
  content: '→';
  color: var(--accent-primary);
  font-weight: 600;
  flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .skills-container {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    width: 120px;
    height: 120px;
  }

  .main-content {
    padding: var(--space-2xl) var(--space-md);
  }

  .detail-panel {
    width: 95%;
    max-height: 90vh;
  }

  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .menu-bar-item {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.8rem;
  }
}
