/* ============================================================
   FAJR.WORK — SHADCN UI DESIGN SYSTEM
   Dark-mode first, minimal, high-contrast, editorial craftsmanship.
   ============================================================ */

:root {
  /* Shadcn Zinc Palette Tokens */
  --background: 240 10% 3.9%;          /* #09090b */
  --foreground: 0 0% 98%;             /* #fafafa */
  
  --card: 240 10% 4.8%;               /* #0c0c0e */
  --card-foreground: 0 0% 98%;
  --card-hover: 240 5% 8%;            /* #141416 */
  
  --popover: 240 10% 3.9%;
  --popover-foreground: 0 0% 98%;
  
  --primary: 0 0% 98%;
  --primary-foreground: 240 5.9% 10%;
  
  --secondary: 240 3.7% 15.9%;        /* #27272a */
  --secondary-foreground: 0 0% 98%;
  
  --muted: 240 3.7% 15.9%;            /* #27272a */
  --muted-foreground: 240 5% 64.9%;   /* #a1a1aa */
  
  --accent: 240 3.7% 15.9%;
  --accent-foreground: 0 0% 98%;
  
  --border: 240 3.7% 15.9%;           /* #27272a */
  --border-subtle: 240 4% 12%;        /* #1e1e22 */
  --border-hover: 240 5% 30%;         /* #4b4b52 */
  
  --ring: 240 4.9% 83.9%;             /* #d4d4d8 */
  
  --radius: 0.75rem;                  /* 12px */
  --radius-sm: 0.5rem;                /* 8px */
  --radius-md: 0.625rem;              /* 10px */
  --radius-lg: 1rem;                  /* 16px */
  --radius-full: 9999px;
  
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  
  --container-max: 860px;
}

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

::selection {
  background: rgba(129, 140, 248, 0.35);
  color: #fafafa;
}

html {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  position: relative;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: 80px;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #09090b;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Background Atmosphere: Subtle Top Radial Glow + Tech Dot Grid */
.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(ellipse 70% 40% at 50% -10%, rgba(120, 119, 198, 0.12), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px;
}

/* Accessible Skip Link */
.skip-link {
  position: absolute;
  top: -48px;
  left: 20px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  z-index: 100;
  transition: top 0.15s ease-out;
}
.skip-link:focus {
  top: 16px;
  outline: 2px solid hsl(var(--ring));
}

/* ---- Sticky Glassmorphic Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(9, 9, 11, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s;
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: hsl(var(--foreground));
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.brand-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  font-size: 11px;
  font-weight: 500;
  color: #4ade80;
  letter-spacing: 0.01em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }\n  50% { opacity: 0.5; transform: scale(0.9); }
}

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

.nav-item a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s, background-color 0.15s;
}

.nav-item a:hover {
  color: hsl(var(--foreground));
  background: rgba(255, 255, 255, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Main Content Layout ---- */
.main-wrapper {
  position: relative;
  z-index: 10;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

/* ---- Hero Section ---- */
.hero {
  padding: 24px 0 40px;
}

.hero-profile-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.hero-avatar-wrapper {
  position: relative;
  display: inline-block;
}

.hero-avatar {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6);
  background: #18181b;
}

.hero-greeting-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: hsl(var(--muted-foreground));
  font-size: 12px;
  font-family: var(--font-mono);
  margin-bottom: 16px;
}

.hero-greeting-pill span.greeting-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #818cf8;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: hsl(var(--foreground));
  margin-bottom: 8px;
}

.hero-title .title-role {
  color: hsl(var(--muted-foreground));
  font-weight: 400;
  font-size: 1.35rem;
  display: block;
  margin-top: 4px;
  letter-spacing: -0.01em;
}

.hero-lede {
  font-size: 16px;
  line-height: 1.7;
  color: #d4d4d8;
  max-width: 68ch;
  margin-top: 16px;
}

.hero-lede strong {
  color: #fafafa;
  font-weight: 600;
}

/* Quick Metrics Cards (Shadcn Card style) */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.stat-card {
  background: rgba(24, 24, 27, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s, background-color 0.2s;
}

.stat-card:hover {
  background: rgba(24, 24, 27, 0.7);
  border-color: rgba(255, 255, 255, 0.14);
}

.stat-value {
  font-size: 13px;
  font-weight: 600;
  color: hsl(var(--foreground));
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-label {
  font-size: 12px;
  color: hsl(var(--muted-foreground));
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

/* ---- Shadcn Button Components ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease-out;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.btn-primary:hover {
  background: rgba(250, 250, 250, 0.9);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border-color: rgba(255, 255, 255, 0.08);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-outline {
  background: transparent;
  color: hsl(var(--foreground));
  border-color: rgba(255, 255, 255, 0.15);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-ghost {
  background: transparent;
  color: hsl(var(--muted-foreground));
}
.btn-ghost:hover {
  color: hsl(var(--foreground));
  background: rgba(255, 255, 255, 0.06);
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* ---- Shadcn Badge Components ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.badge-outline {
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: hsl(var(--muted-foreground));
}

.badge-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: hsl(var(--foreground));
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.badge-subtle {
  background: rgba(24, 24, 27, 0.6);
  color: hsl(var(--muted-foreground));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---- Section Headers ---- */
.section-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.1) 80%, transparent);
  margin: 48px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.section-header-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a1a1aa;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

.section-desc {
  font-size: 14px;
  color: hsl(var(--muted-foreground));
}

/* ---- Shadcn Tabs (Segmented Control Filter) ---- */
.tabs-container {
  display: inline-flex;
  align-items: center;
  background: rgba(24, 24, 27, 0.7);
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 2px;
}

.tab-btn {
  background: transparent;
  border: 0;
  color: hsl(var(--muted-foreground));
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: calc(var(--radius-md) - 3px);
  cursor: pointer;
  transition: all 0.15s ease-out;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab-btn:hover {
  color: hsl(var(--foreground));
}

.tab-btn.active {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.tab-count {
  font-size: 10px;
  font-family: var(--font-mono);
  opacity: 0.7;
}

/* ---- Project Cards Grid (Shadcn Card) ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 16px;
  list-style: none;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: rgba(20, 20, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.project-card:hover {
  transform: translateY(-2px);
  background: rgba(28, 28, 32, 0.8);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7);
}

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

.project-card:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-org {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-date {
  font-size: 11px;
  font-family: var(--font-mono);
  color: hsl(var(--muted-foreground));
}

.card-arrow {
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease-out;
}

.project-card:hover .card-arrow {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translate(2px, -2px);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: hsl(var(--foreground));
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #a1a1aa;
  margin-bottom: 14px;
  flex-grow: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag-chip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #a1a1aa;
  font-family: var(--font-mono);
}

/* ---- Empty States (Playground & Notes) ---- */
.empty-state-card {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(20, 20, 23, 0.3);
  padding: 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: border-color 0.2s, background-color 0.2s;
}

.empty-state-card:hover {
  background: rgba(20, 20, 23, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
}

.empty-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
}

.empty-title {
  font-size: 14px;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.empty-desc {
  font-size: 13px;
  color: hsl(var(--muted-foreground));
  max-width: 42ch;
  line-height: 1.5;
}

/* Simple List (if Playground or Notes have entries) */
.simple-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 12px;
  list-style: none;
}

/* ---- Connect / Contact Grid ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(20, 20, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease-out;
  position: relative;
}

.contact-card:hover {
  background: rgba(28, 28, 32, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.contact-card:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.contact-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.contact-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fafafa;
  flex-shrink: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-label {
  font-size: 13px;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.contact-value {
  font-size: 12px;
  color: hsl(var(--muted-foreground));
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.copy-mini-btn {
  background: transparent;
  border: 0;
  color: hsl(var(--muted-foreground));
  padding: 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background-color 0.15s;
}
.copy-mini-btn:hover {
  color: hsl(var(--foreground));
  background: rgba(255, 255, 255, 0.1);
}

/* ---- Article & Reading View (Notes & Essays) ---- */
.article-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 0 64px;
}

.article-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a1a1aa;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 24px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.15s ease;
}

.article-back-link:hover {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateX(-2px);
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #a1a1aa;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: hsl(var(--foreground));
  line-height: 1.2;
  margin-bottom: 16px;
}

.article-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #a1a1aa;
}

/* Prose Typography */
.prose {
  font-size: 16.5px;
  line-height: 1.8;
  color: #d4d4d8;
}

.prose p {
  margin-bottom: 24px;
}

.prose h2 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fafafa;
  margin-top: 56px;
  margin-bottom: 20px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}

.prose blockquote {
  margin: 28px 0;
  padding: 12px 20px;
  border-left: 2px solid #71717a;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #e4e4e7;
  font-style: italic;
}

.prose em {
  color: #f4f4f5;
  font-style: italic;
}

.prose strong {
  color: #ffffff;
  font-weight: 600;
}

.article-footer-nav {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---- Footer ---- */
.site-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: hsl(var(--muted-foreground));
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.footer-link {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.15s;
}
.footer-link:hover {
  color: hsl(var(--foreground));
}

/* ---- Toast Notification (Shadcn Toast) ---- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: #18181b;
  color: hsl(var(--foreground));
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.8);
  font-size: 13px;
  font-weight: 500;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  color: #22c55e;
  flex-shrink: 0;
}

/* ---- Responsive Tweaks ---- */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .hero-profile-row {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
  }
  .nav-item.nav-desktop-only {
    display: none;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-title .title-role {
    font-size: 1.15rem;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .main-wrapper {
    padding: 32px 16px 64px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
