/* ==========================================================================
   kgo.best | Vibe Coding Portfolio & Server Portal Stylesheet
   Calm, Sophisticated & Modern Theme (Dark / Light Mode)
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Variables)
   -------------------------------------------------------------------------- */
:root {
  /* DARK THEME (Default) */
  --bg-primary: #090D16;
  --bg-secondary: #0F1626;
  --bg-card: rgba(18, 26, 43, 0.72);
  --bg-card-hover: rgba(25, 36, 59, 0.85);
  --bg-card-solid: #131C2E;
  --bg-glass: rgba(15, 23, 42, 0.65);
  --bg-input: rgba(30, 41, 59, 0.6);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-focus: rgba(99, 102, 241, 0.5);

  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-inverse: #090D16;

  /* Calm Sophisticated Accents */
  --accent-primary: #6366F1;     /* Calm Indigo */
  --accent-primary-hover: #4F46E5;
  --accent-primary-glow: rgba(99, 102, 241, 0.25);
  
  --accent-cyan: #38BDF8;        /* Sky / Cyan */
  --accent-cyan-glow: rgba(56, 189, 248, 0.2);

  --accent-emerald: #10B981;     /* Soft Green (Online) */
  --accent-emerald-glow: rgba(16, 185, 129, 0.2);

  --accent-amber: #F59E0B;       /* Warm Amber */
  --accent-amber-glow: rgba(245, 158, 11, 0.2);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);

  --font-main: 'Pretendard', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  --font-display: 'Outfit', 'Pretendard', sans-serif;

  --header-height: 72px;
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-speed: 0.28s;
  --canvas-particle-color: rgba(148, 163, 184, 0.6);
  --canvas-line-color: rgba(99, 102, 241, 0.18);
}

/* LIGHT THEME OVERRIDES */
[data-theme="light"] {
  --bg-primary: #F8FAFC;
  --bg-secondary: #F1F5F9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-card-solid: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.78);
  --bg-input: #E2E8F0;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.16);
  --border-focus: rgba(99, 102, 241, 0.6);

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;

  --accent-primary: #4F46E5;
  --accent-primary-hover: #4338CA;
  --accent-primary-glow: rgba(79, 70, 229, 0.15);

  --accent-cyan: #0284C7;
  --accent-cyan-glow: rgba(2, 132, 199, 0.15);

  --accent-emerald: #059669;
  --accent-emerald-glow: rgba(5, 150, 105, 0.15);

  --accent-amber: #D97706;
  --accent-amber-glow: rgba(217, 119, 6, 0.15);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 10px 30px -10px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);

  --canvas-particle-color: rgba(71, 85, 105, 0.45);
  --canvas-line-color: rgba(99, 102, 241, 0.15);
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

/* Background Ambient Glows */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  transition: opacity var(--transition-speed) ease;
}

[data-theme="light"] .bg-glow {
  opacity: 0.18;
}

.bg-glow-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
  top: -120px;
  left: -100px;
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  top: 40%;
  right: -120px;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.header-container {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  flex-shrink: 0;
}

.brand-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-primary), #4338CA);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--accent-primary-glow);
}

.brand-icon-box svg {
  width: 20px;
  height: 20px;
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.accent-dot {
  color: var(--accent-primary);
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.14);
  color: var(--accent-primary);
  border: 1px solid rgba(99, 102, 241, 0.28);
  white-space: nowrap;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  white-space: nowrap;
  flex-shrink: 1;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  white-space: nowrap;
  word-break: keep-all;
  flex-shrink: 0;
}

.nav-link span {
  white-space: nowrap;
  word-break: keep-all;
}

.nav-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--border-subtle);
}

.nav-link.active {
  color: var(--text-primary);
  background: var(--border-subtle);
  font-weight: 600;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.server-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  border-color: var(--border-medium);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

[data-theme="dark"] .icon-sun {
  display: block;
}
[data-theme="dark"] .icon-moon {
  display: none;
}

[data-theme="light"] .icon-sun {
  display: none;
}
[data-theme="light"] .icon-moon {
  display: block;
}

/* --------------------------------------------------------------------------
   Hero Section & Interactive Particle Canvas
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.hero-chip svg {
  width: 16px;
  height: 16px;
  color: var(--accent-primary);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  color: var(--text-primary);
}

.text-gradient {
  background: linear-gradient(135deg, #818CF8 0%, #38BDF8 50%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

[data-theme="light"] .text-gradient {
  background: linear-gradient(135deg, #4F46E5 0%, #0284C7 60%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 400;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.btn svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #4F46E5);
  color: #FFFFFF;
  box-shadow: 0 4px 18px var(--accent-primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-primary-glow);
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Hero Quick Stats Row */
.hero-quick-bar {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 16px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  max-width: 100%;
}

.quick-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.quick-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-stat-icon svg {
  width: 18px;
  height: 18px;
}

.quick-stat-info {
  display: flex;
  flex-direction: column;
}

.quick-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.quick-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.quick-stat-divider {
  width: 1px;
  height: 32px;
  background-color: var(--border-subtle);
}

/* Scroll Down Indicator */
.scroll-down-indicator {
  position: absolute;
  bottom: 18px;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounceDown 2s infinite ease-in-out;
  transition: color 0.2s ease;
  z-index: 2;
}

.scroll-down-indicator:hover {
  color: var(--text-primary);
}

.scroll-down-indicator svg {
  width: 24px;
  height: 24px;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* --------------------------------------------------------------------------
   Common Section Layout
   -------------------------------------------------------------------------- */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-subtitle svg {
  width: 14px;
  height: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   SERVER DASHBOARD SECTION (4 CARDS)
   -------------------------------------------------------------------------- */
.dashboard-section {
  position: relative;
  padding: 90px 0 100px;
  background: linear-gradient(180deg, transparent 0%, var(--bg-secondary) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1;
}

.dashboard-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.last-sync-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.last-sync-text svg {
  width: 14px;
  height: 14px;
}

.btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-refresh:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-refresh svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s ease;
}

.btn-refresh.spinning svg {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Dashboard 4-Card Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

@media (max-width: 1080px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Dashboard Card */
.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.dash-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dash-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.dash-card:hover::before {
  opacity: 1;
}

/* Card Header */
.dash-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.dash-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-icon-wrapper svg {
  width: 22px;
  height: 22px;
}

.icon-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
}

.icon-indigo {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-primary);
}

.icon-cyan {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
}

.icon-amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
}

.dash-header-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-header-title h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.dash-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}

.tag-online {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.tag-indigo {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-primary);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.tag-cyan {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.tag-amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Card Body */
.dash-card-body {
  margin-bottom: 20px;
}

.metric-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.metric-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Metric Split for Memory/Disk */
.metric-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 10px;
}

.split-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.split-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.split-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.split-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Progress Bars */
.progress-container {
  width: 100%;
  height: 6px;
  background-color: var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 14px;
}

.progress-container.mini {
  height: 4px;
  margin-top: 4px;
  margin-bottom: 0;
}

.progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-indigo {
  background: linear-gradient(90deg, var(--accent-primary), #818CF8);
}

.bar-cyan {
  background: linear-gradient(90deg, var(--accent-cyan), #67E8F9);
}

.bar-emerald {
  background: linear-gradient(90deg, var(--accent-emerald), #34D399);
}

/* Metric Details */
.metric-details {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.detail-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.detail-name svg {
  width: 13px;
  height: 13px;
  color: var(--text-muted);
}

.detail-val {
  font-weight: 600;
  color: var(--text-primary);
}

.text-emerald {
  color: var(--accent-emerald) !important;
}

/* Card Footer */
.dash-card-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.footer-note svg {
  width: 13px;
  height: 13px;
}

.footer-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-link-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.footer-link-btn:hover {
  color: var(--accent-cyan);
}

.footer-link-btn:hover svg {
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   PROJECTS & SHOWCASE SECTION
   -------------------------------------------------------------------------- */
.projects-section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

/* Eye-catching App Launcher Buttons / Cards */
.launcher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.launcher-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  text-decoration: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  cursor: pointer;
}

.launcher-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: background 0.3s ease;
}

.launcher-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 30px var(--card-glow, rgba(99, 102, 241, 0.25));
  border-color: var(--card-border, var(--accent-primary));
}

/* Eye-catching App Launcher Buttons / Cards (Unified Blue Palette) */
.launcher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.launcher-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  text-decoration: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  cursor: pointer;
}

.launcher-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  transition: height 0.25s ease;
}

.launcher-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 30px rgba(37, 99, 235, 0.25);
  border-color: #3b82f6;
}

.launcher-card:hover::before {
  height: 5px;
}

/* Large Icon Box - Unified Crisp Blue */
.launcher-icon-box {
  width: 104px;
  height: 104px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(56, 189, 248, 0.08));
  border: 1.5px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

[data-theme="light"] .launcher-icon-box {
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
  border: 1.5px solid #bae6fd;
  color: #0284c7;
}

.launcher-card:hover .launcher-icon-box {
  transform: scale(1.1) rotate(-3deg);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(56, 189, 248, 0.18));
  border-color: rgba(56, 189, 248, 0.6);
  color: #60a5fa;
}

.launcher-icon-box svg {
  width: 76px;
  height: 76px;
}

/* Feature Title */
.launcher-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

/* Eye-Catching Button - Unified Sleek Blue */
.launcher-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all 0.25s ease;
}

.launcher-card:hover .launcher-btn {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  filter: brightness(1.08);
}

.launcher-btn svg {
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease;
}

.launcher-card:hover .launcher-btn svg {
  transform: translateX(4px);
}

/* Project Card */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.project-card.featured-card {
  border-color: rgba(99, 102, 241, 0.35);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, var(--bg-card) 100%);
}

.project-card.featured-card:hover {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 12px 32px var(--accent-primary-glow);
}

/* Badges */
.project-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}

.project-badge svg {
  width: 12px;
  height: 12px;
}

.live-badge {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.api-badge {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.upcoming-badge {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

/* Icon Box */
.project-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.project-card:hover .project-icon-box {
  transform: scale(1.06);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(56, 189, 248, 0.2));
}

.project-icon-box svg {
  width: 26px;
  height: 26px;
}

/* Project Body */
.project-body {
  margin-bottom: 26px;
}

.project-meta {
  margin-bottom: 6px;
}

.category-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.project-description {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--border-subtle);
  color: var(--text-secondary);
}

/* Card Launch Button */
.btn-card-launch {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-card-launch svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.btn-card-launch:hover {
  background: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 14px var(--accent-primary-glow);
}

.btn-card-launch:hover svg {
  transform: translateX(4px);
}

.btn-card-disabled {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  background: var(--border-subtle);
  color: var(--text-muted);
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-card-disabled svg {
  width: 15px;
  height: 15px;
}

/* --------------------------------------------------------------------------
   ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-section {
  padding: 60px 0 110px;
  position: relative;
  z-index: 1;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 880px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-card {
    padding: 30px;
  }
}

.about-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.about-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px;
}

.feature-bullets {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.bullet-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.bullet-icon svg {
  width: 18px;
  height: 18px;
}

.bullet-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bullet-text strong {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.bullet-text span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* About Tech Stack Card Box */
.about-tech-stack {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
}

.stack-box-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.stack-box-title svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
}

.stack-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.stack-item:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  transform: translateX(4px);
}

.stack-item svg {
  width: 17px;
  height: 17px;
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  padding: 40px 0 30px;
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-logo svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
}

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

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

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

.footer-right {
  display: flex;
  align-items: center;
}

.back-to-top-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.back-to-top-btn:hover {
  background: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.back-to-top-btn svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   Keyframe Animations
   -------------------------------------------------------------------------- */
.animate-fade-down {
  animation: fadeDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-1 {
  animation-delay: 0.15s;
}

.delay-2 {
  animation-delay: 0.3s;
}

.delay-3 {
  animation-delay: 0.45s;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* --------------------------------------------------------------------------
   Responsive Navigation & Mobile Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1250px) {
  .nav-links {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 3px;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-link {
    padding: 5px 7px;
    font-size: 0.8rem;
    gap: 4px;
  }
  .brand-badge {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hide top nav links on small mobile for clean interface */
  }

  .header-container {
    padding: 0 16px;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 40px;
  }

  .hero-quick-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    width: 100%;
  }

  .quick-stat-divider {
    width: 100%;
    height: 1px;
  }

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

  .footer-center {
    order: 2;
  }

  .footer-left {
    align-items: center;
    order: 1;
  }

  .footer-right {
    order: 3;
  }
}
