/* ==========================================================================
   Maria Hobbs Portfolio — Artistic & Clean Design System
   ========================================================================== */

:root {
  --font-serif: 'Playfair Display', Georgia, Cambria, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Artistic Dark Palette (Inspired by Maria's illustrated banner) */
  --bg-page: #0f1117;
  --bg-surface: #161922;
  --bg-surface-soft: #1d222e;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.05);

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  /* Banner-inspired soft accents (mint & lavender) */
  --accent: #8fe3b8;
  --accent-soft: rgba(143, 227, 184, 0.15);
  --accent-lavender: #c2c8f8;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.7);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --transition: 0.2s ease;
}

[data-theme="light"] {
  --bg-page: #f7f8fa;
  --bg-surface: #ffffff;
  --bg-surface-soft: #f0f2f6;
  --border-color: rgba(0, 0, 0, 0.09);
  --border-subtle: rgba(0, 0, 0, 0.04);

  --text-primary: #18191f;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;

  --accent: #1f945c;
  --accent-soft: rgba(31, 148, 92, 0.1);
  --accent-lavender: #5a64b8;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background-color var(--transition), color var(--transition);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

/* ==========================================================================
   Page Wrapper
   ========================================================================== */

.page-wrapper {
  width: 100%;
  max-width: 1020px;
  margin: 1.5rem auto 3rem;
  padding: 0 1.25rem;
}

/* ==========================================================================
   Top Header & Illustrated Banner
   ========================================================================== */

.site-top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.theme-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.theme-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

.banner-container {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  margin-bottom: 1.25rem;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.main-nav {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.4rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: block;
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface-soft);
}

.nav-link.active {
  color: var(--text-primary);
  background-color: var(--accent-soft);
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
}

/* ==========================================================================
   Page Titles & Sections
   ========================================================================== */

.section-header {
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  max-width: 700px;
}

/* ==========================================================================
   Bio Card (Home)
   ========================================================================== */

.bio-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}

.bio-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.bio-content p:last-child {
  margin-bottom: 0;
}

.bio-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.bio-signature-bar {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.bio-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
}

.bio-email-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Category Filters
   ========================================================================== */

.filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.filter-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

.filter-btn.active {
  color: var(--text-primary);
  background: var(--accent-soft);
  border-color: var(--accent);
  font-weight: 600;
}

.filter-count {
  font-size: 0.75rem;
  opacity: 0.75;
  margin-left: 0.25rem;
}

/* ==========================================================================
   Art Gallery Grid
   ========================================================================== */

.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.art-item {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.art-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.art-thumb-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: var(--bg-surface-soft);
  overflow: hidden;
}

.art-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.art-item:hover .art-thumb {
  transform: scale(1.05);
}

.art-caption {
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
}

.art-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.art-tag {
  font-size: 0.725rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Web Design Projects (Clean & Artistic)
   ========================================================================== */

.project-section {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.project-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.project-desc {
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 800px;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.project-thumb {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
  width: 100%;
}

.project-thumb:hover {
  transform: scale(1.03);
  border-color: var(--accent);
}

/* ==========================================================================
   Resume Page (Clean & Personal)
   ========================================================================== */

.resume-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 3rem;
}

.resume-block {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.resume-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.resume-block-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}

.resume-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.skill-pill {
  padding: 0.35rem 0.8rem;
  background-color: var(--bg-surface-soft);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-soft);
  color: var(--text-primary);
  border: 1px solid var(--accent);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.925rem;
  transition: all var(--transition);
  margin-top: 1rem;
}

.download-btn:hover {
  background-color: var(--accent);
  color: #0f1117;
}

/* ==========================================================================
   Full-Screen Lightbox Modal
   ========================================================================== */

.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(10, 12, 16, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrapper {
  position: relative;
  max-width: 100%;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
  margin-top: 1rem;
  text-align: center;
  color: #ffffff;
}

.lightbox-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.lightbox-subtitle {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.lightbox-btn {
  position: absolute;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}

.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-secondary);
}

.site-footer a:hover {
  color: var(--accent);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 650px) {
  .page-wrapper {
    margin-top: 0.75rem;
    padding: 0 0.85rem;
  }
  .nav-list {
    justify-content: space-around;
  }
  .nav-link {
    padding: 0.5rem 0.65rem;
    font-size: 0.875rem;
  }
  .art-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .bio-card, .resume-container, .project-section {
    padding: 1.5rem;
  }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}
