/* ============================================
   DASHBOARD RESUME
   ============================================ */

/* Light theme (default) */
:root, [data-theme="light"] {
  --bg: #ffffff;
  --bg-card: #f8f9fa;
  --bg-page: #e9ecef;
  --accent: #0066cc;
  --accent-muted: #0055aa;
  --accent-secondary: #6b21a8;
  --green: #16a34a;
  --text: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #888;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: rgba(0, 0, 0, 0.1);
}

/* Dark theme - system preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1f1f1e;
    --bg-card: #292928;
    --bg-page: #1f1f1e;
    --accent: #00d4ff;
    --accent-muted: #00a0c0;
    --accent-secondary: #7c3aed;
    --green: #22c55e;
    --text: #f0f0f0;
    --text-secondary: #999;
    --text-muted: #666;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: rgba(0, 0, 0, 0.4);
  }
}

/* Dark theme - manual override */
[data-theme="dark"] {
  --bg: #1f1f1e;
  --bg-card: #292928;
  --bg-page: #1f1f1e;
  --accent: #00d4ff;
  --accent-muted: #00a0c0;
  --accent-secondary: #7c3aed;
  --green: #22c55e;
  --text: #f0f0f0;
  --text-secondary: #999;
  --text-muted: #666;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ============================================
   LAYOUT
   ============================================ */

.dashboard {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100vh;
  gap: 16px 6px;
  padding: 6px;
  background: var(--bg-page);
}


/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
  background: var(--bg-card);
  display: flex;
  align-items: center;
  padding: 2.5rem 3rem;
  gap: 3rem;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  border: 1px solid transparent;
}

.about:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 32px var(--shadow);
  z-index: 10;
}

.about::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.about::before {
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 212, 255, 0.06), transparent 60%);
}

.dashboard:hover .about::before {
  opacity: 1;
}

.about-left {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex: 1;
}

.avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.avatar {
  height: 173px;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--border);
  position: relative;
  z-index: 1;
}

.about-text {
  flex: 1;
}

.about-text h1 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.role {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0.875rem;
}

.accent {
  color: var(--accent-muted);
}

.bio-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1rem;
}

.bio-header {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.summary {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skills span {
  font-size: 0.6875rem;
  color: var(--text-muted);
  padding: 0.25rem 0.625rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
}

.theme-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.theme-toggle:hover {
  opacity: 0.7;
}


.links {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
}

.links a {
  font-size: 0.8125rem;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.links a:hover {
  opacity: 0.7;
}

/* ============================================
   PROJECTS GRID
   ============================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 6px;
  background: transparent;
}

.contact-card {
  display: none;
  background: var(--bg-card);
  padding: 1.5rem;
  text-align: center;
}

.contact-card a {
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
  margin: 0 1rem;
  transition: opacity 0.2s ease;
}

.contact-card a:hover {
  opacity: 0.7;
}

/* ============================================
   PROJECT CARDS
   ============================================ */

.project-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  border: 1px solid transparent;
}

.project-card:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 32px var(--shadow);
  z-index: 10;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.dashboard:hover .project-card::before {
  opacity: 1;
}

/* Project card backgrounds */
.project-card {
  background: var(--bg-card);
}

/* Hover glow effects */
.project-card:nth-child(1)::before {
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 212, 255, 0.06), transparent 60%);
}

.project-card:nth-child(2)::before {
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(34, 197, 94, 0.05), transparent 60%);
}

.project-card:nth-child(3)::before {
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(124, 58, 237, 0.06), transparent 60%);
}

.card-art {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.card-tagline {
  font-size: 1.125rem;
  color: var(--accent-muted);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.card-tagline .arrow {
  color: var(--accent);
  margin-left: 0.375rem;
  opacity: 0.7;
  font-size: 0.875rem;
}

.project {
  position: relative;
  z-index: 1;
}

.project + .project {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.375rem;
  position: relative;
  z-index: 1;
}

.card-header h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-badge {
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.status-badge.live {
  color: var(--green);
}

.status-badge.down {
  color: #ef4444;
}

.card-links {
  display: flex;
  gap: 0.75rem;
}

.live-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.live-link:hover {
  opacity: 0.7;
}

.source-link {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.source-link:hover {
  color: var(--text-secondary);
}

.card-subtitle {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.875rem;
  position: relative;
  z-index: 1;
}

.card-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.card-subheader {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.card-list {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 1rem 0;
  padding-left: 1.25rem;
  position: relative;
  z-index: 1;
}

.card-list li {
  margin-bottom: 0.25rem;
}

.card-list li::marker {
  color: var(--text-muted);
}

.card-desc strong {
  color: var(--text);
  font-weight: 500;
}

.card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: auto;
  padding-top: 1rem;
}

.card-tags span {
  font-size: 0.625rem;
  color: var(--text-muted);
  padding: 0.1875rem 0.5rem;
  background: var(--bg-card);
  border-radius: 2px;
}

/* ============================================
   SATSUITE MODULES
   ============================================ */

.modules {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.module {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.module-name {
  font-weight: 500;
  color: var(--text);
}

.module-status {
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.module-status.live {
  color: var(--green);
}

.module-status.down {
  color: #ef4444;
}

.module-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.module-links {
  margin-left: auto;
  font-size: 0.6875rem;
}

.module-links a.demo-link {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.module-links a.demo-link:hover {
  opacity: 0.7;
}

.module-links a.source-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.module-links a.source-link:hover {
  color: var(--text-secondary);
}

.module-links a + a {
  margin-left: 0.5rem;
}

.module-links.disabled {
  color: var(--text-muted);
  opacity: 0.4;
}

.module.soon {
  opacity: 0.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
  .about-text h1 {
    font-size: 1.5rem;
  }

  .summary {
    font-size: 0.8125rem;
  }
}

@media (max-width: 900px) {
  html, body {
    overflow: auto;
  }

  .dashboard {
    height: auto;
    min-height: 100vh;
  }

  .about {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
  }

  .bio-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .about-left {
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
  }

  .avatar-section {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    gap: 1rem;
  }

  .avatar {
    width: 80px;
    height: 80px !important;
    aspect-ratio: 1;
  }

  .links {
    flex: 1;
    flex-direction: row;
    justify-content: space-evenly;
    gap: 0.5rem;
  }

  .about {
    padding: 1.5rem;
  }

  .about-text h1 {
    font-size: 1.375rem;
  }

  .role {
    font-size: 0.8125rem;
  }

  .project-card {
    padding: 1.25rem;
  }

  .card-tagline {
    font-size: 1rem;
  }

  .contact-card {
    display: block;
  }
}
