/* ============================================
   COREY RICHARDS-PERSAD — PORTFOLIO STYLES
   Clean Professional Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg:         #fafafa;
  --surface:    #ffffff;
  --border:     #e8e8e8;
  --text:       #1a1a1a;
  --text-muted: #6b7280;
  --accent:     #1d4ed8;
  --accent-light: #dbeafe;
  --accent-dark: #1e3a8a;
  --tag-bg:     #f1f5f9;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:  0 12px 32px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --radius:     12px;
  --radius-sm:  8px;
  --transition: 0.2s ease;
}

.dark-mode {
  --bg:          #0f172a;
  --surface:     #1e293b;
  --border:      #334155;
  --text:        #f1f5f9;
  --text-muted:  #94a3b8;
  --accent:      #60a5fa;
  --accent-light:#1e3a5f;
  --accent-dark: #93c5fd;
  --tag-bg:      #1e3a5f;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:   0 12px 32px rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; font-family: 'DM Sans', sans-serif; font-weight: 600; }

p { color: var(--text-muted); margin: 0; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-dark); text-decoration: underline; }
.dark-mode a:hover { color: var(--accent-dark); }

/* ---- Layout ---- */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Navigation ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease;
}

.nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--text) !important;
  text-decoration: none !important;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted) !important;
  text-decoration: none !important;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text) !important;
  background: var(--tag-bg);
}

.theme-btn {
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--text);
  margin-left: 8px;
}

.theme-btn:hover {
  background: var(--border);
}

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), background 0.3s ease;
}

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

/* ---- Tags / Badges ---- */
.tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.tag-accent {
  background: var(--accent-light);
  color: var(--accent);
  border-color: transparent;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none !important;
}

.btn-primary {
  background: var(--accent);
  color: #fff !important;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff !important; }

.btn-outline {
  background: transparent;
  color: var(--accent) !important;
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-light); }

/* ---- Section spacing ---- */
section { padding: 56px 0; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  display: block;
}

.section-title {
  margin-bottom: 32px;
}

/* ---- Divider ---- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ---- Back link ---- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted) !important;
  text-decoration: none !important;
  margin-bottom: 32px;
}
.back-link:hover { color: var(--text) !important; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  section { padding: 40px 0; }
  .card { padding: 20px; }
  .nav-links a { font-size: 0.8rem; padding: 5px 8px; }
}
