:root {
  --bg-color: #0b0c10;
  --card-bg: rgba(22, 26, 39, 0.45);
  --card-border: rgba(255, 255, 255, 0.07);
  --card-border-hover: rgba(255, 255, 255, 0.15);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Accent Colors */
  --accent-work: #a78bfa;       /* Violet */
  --accent-math: #38bdf8;       /* Sky Blue */
  --accent-rust: #fb923c;       /* Orange */
  
  --accent-glow: rgba(99, 102, 241, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

body {
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(167, 139, 250, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(56, 189, 248, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 3rem 1.5rem;
}

/* Container */
.container {
  max-width: 1050px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  flex-grow: 1;
}

/* Header */
header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

header h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #f3f4f6 0%, #a78bfa 50%, #38bdf8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}

header p.tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 600px;
  line-height: 1.5;
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.social-btn:hover {
  border-color: var(--card-border-hover);
  color: var(--text-main);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.03);
}

.social-btn img {
  width: 20px;
  height: 20px;
  transition: filter 0.25s ease;
}

.social-btn:hover img {
  filter: brightness(1.15);
}

/* Main Content Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 850px) {
  .dashboard-grid {
    grid-template-columns: 1fr 1.6fr;
  }
}

/* Panel cards */
.panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.panel h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.panel h2 span.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.panel-about h2 span.dot {
  background-color: var(--accent-work);
  box-shadow: 0 0 8px var(--accent-work);
}

.panel-creations h2 span.dot {
  background-color: var(--accent-math);
  box-shadow: 0 0 8px var(--accent-math);
}

/* About Section text styles */
.about-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-text strong {
  color: var(--text-main);
  font-weight: 500;
}

/* Creations List/Grid */
.creations-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Creation Card */
.creation-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.creation-card[data-type="math"] { --theme-color: var(--accent-math); }
.creation-card[data-type="rust"] { --theme-color: var(--accent-rust); }

.creation-card:hover {
  transform: translateY(-3px);
  border-color: var(--theme-color);
  box-shadow: 
    0 10px 20px -5px rgba(0, 0, 0, 0.2),
    0 0 15px rgba(255, 255, 255, 0.01);
}

.creation-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--theme-color), transparent);
  opacity: 0.5;
}

.creation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.creation-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
}

.creation-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--theme-color);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.creation-card:hover .creation-badge {
  background: rgba(255, 255, 255, 0.06);
}

.creation-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 300;
}

/* Actions/Links within Cards */
.creation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.action-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--theme-color);
  color: var(--text-main);
}

.action-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Primary play action for Chess engine */
.action-btn.primary {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.2) 0%, rgba(251, 146, 60, 0.1) 100%);
  border-color: rgba(251, 146, 60, 0.4);
  color: #ffedd5;
}

.action-btn.primary:hover {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.35) 0%, rgba(251, 146, 60, 0.2) 100%);
  border-color: var(--accent-rust);
  box-shadow: 0 0 10px rgba(251, 146, 60, 0.15);
}

/* Footer styling */
footer {
  margin-top: auto;
  text-align: center;
  padding: 3rem 0 1rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}
