/* ==========================================================================
   PORTFOLIO DESIGN SYSTEM — Annurudin Tsanasti Yassar (aikodo.my.id)
   Aesthetic: Modern Editorial Developer Portfolio
   Zero-framework high-performance Vanilla CSS with CSS Custom Properties
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Palette: Obsidian Slate & Precision Emerald Accent */
  --bg-canvas: #080c14;
  --bg-surface: #0e1524;
  --bg-surface-elevated: #141e33;
  --bg-surface-glass: rgba(14, 21, 36, 0.85);
  --bg-surface-subtle: rgba(255, 255, 255, 0.03);

  /* Hairline Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(16, 185, 129, 0.35);

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #080c14;

  /* Accents */
  --accent-emerald: #10b981;
  --accent-emerald-subtle: rgba(16, 185, 129, 0.1);
  --accent-emerald-hover: #059669;
  --accent-cyan: #38bdf8;
  --accent-cyan-subtle: rgba(56, 189, 248, 0.1);
  --accent-amber: #f59e0b;

  /* Typography Scales */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing & Layout */
  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 8px 24px -4px rgba(16, 185, 129, 0.2);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 250ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  background-color: var(--bg-canvas);
  color: var(--text-secondary);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.65;
}

::selection {
  background-color: var(--accent-emerald);
  color: var(--text-inverse);
}

:focus-visible {
  outline: 2px solid var(--accent-emerald);
  outline-offset: 3px;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-emerald);
}

/* Subtle Architectural Grid Texture (Lightweight, Non-distracting) */
.ambient-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* Section Spacing */
.section {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

/* Section Header Typography */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-emerald);
  margin-bottom: 0.875rem;
}

.section-tag::before {
  content: '';
  width: 16px;
  height: 2px;
  background-color: var(--accent-emerald);
  border-radius: var(--radius-pill);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-description {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-tag {
  justify-content: center;
}

.section-header.centered .section-tag::before {
  display: none;
}

.section-header.centered .section-description {
  margin-left: auto;
  margin-right: auto;
}

/* Section Divider */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle) 20%, var(--border-subtle) 80%, transparent);
}

/* --------------------------------------------------------------------------
   3. NAVIGATION BAR
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background-color: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.875rem 0;
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-monogram {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-emerald);
  transition: all var(--transition-fast);
}

.brand-monogram:hover .brand-badge {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.brand-text .brand-accent {
  color: var(--accent-emerald);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--accent-emerald);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-emerald);
  border-radius: var(--radius-pill);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

/* Language Switcher Pill */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.lang-btn {
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background-color: var(--accent-emerald);
  color: var(--text-inverse);
}

.lang-btn:hover:not(.active) {
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-emerald);
  color: var(--text-inverse);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background-color: #1ed79c;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -4px rgba(16, 185, 129, 0.35);
}

.btn-secondary {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--border-accent);
  background-color: #1a253d;
  transform: translateY(-2px);
  color: var(--accent-emerald);
}

.btn-sm {
  padding: 0.45rem 0.875rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

/* Mobile Hamburger */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
}

@media (min-width: 860px) {
  .hamburger-btn {
    display: none;
  }
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: var(--radius-pill);
  transition: all var(--transition-normal);
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background-color: rgba(8, 12, 20, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--accent-emerald);
}

/* --------------------------------------------------------------------------
   4. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

.hero-content {
  max-width: 660px;
}

/* Availability Pill */
.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0.875rem;
  background-color: var(--accent-emerald-subtle);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-emerald);
  margin-bottom: 1.75rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  opacity: 0.4;
  animation: pulse-ring 2s infinite ease-out;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hero-name {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .hero-name {
    font-size: 3.75rem;
  }
}

@media (min-width: 1200px) {
  .hero-name {
    font-size: 4.25rem;
  }
}

.hero-role-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent-emerald);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-role-bar .role-slash {
  color: var(--border-medium);
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2.25rem;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* Key Credentials Ribbon */
.hero-credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.credential-item {
  display: flex;
  flex-direction: column;
}

.credential-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.credential-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Hero Right: Technical Overview / Quick Specs Card */
.hero-spec-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-spec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background-color: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.spec-window-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.window-dot.dot-red { background-color: #ef4444; }
.window-dot.dot-yellow { background-color: #f59e0b; }
.window-dot.dot-green { background-color: #10b981; }

.spec-window-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-spec-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.spec-block {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-emerald);
}

.spec-val {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.25rem;
}

.spec-pill {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.hero-spec-footer {
  padding: 0.875rem 1.25rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.spec-link-anchor {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--accent-emerald);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.spec-link-anchor:hover {
  color: #34d399;
}

/* --------------------------------------------------------------------------
   5. ABOUT & IDENTITY SECTION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .about-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4.5rem;
  }
}

.about-photo-wrapper {
  position: relative;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.about-photo-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform var(--transition-slow);
}

.about-photo-frame:hover .about-photo {
  transform: scale(1.03);
}

.about-photo-meta {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  padding: 0.75rem 1rem;
  background-color: var(--bg-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about-meta-role {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.about-meta-location {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.about-narrative {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-narrative p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.highlight-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.125rem;
}

.highlight-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-emerald);
  text-transform: uppercase;
  margin-bottom: 0.375rem;
}

.highlight-desc {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   6. CAPABILITIES (WHAT I BUILD / VALUE-BASED)
   -------------------------------------------------------------------------- */
.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .capabilities-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.capability-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.capability-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.capability-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent-emerald);
  margin-bottom: 1.5rem;
}

.capability-card:hover .capability-icon-wrap {
  border-color: var(--accent-emerald);
  background-color: var(--accent-emerald-subtle);
}

.capability-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

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

/* --------------------------------------------------------------------------
   7. FEATURED PROJECTS (MINI CASE STUDIES)
   -------------------------------------------------------------------------- */
.projects-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.case-study-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-normal);
}

.case-study-card:hover {
  border-color: var(--border-accent);
}

.case-study-inner {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .case-study-inner {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.case-study-main {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .case-study-main {
    padding: 3rem;
  }
}

.case-study-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.case-study-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-emerald);
  padding: 0.25rem 0.625rem;
  background-color: var(--accent-emerald-subtle);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-pill);
}

.case-study-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .case-study-title {
    font-size: 2.125rem;
  }
}

.case-study-subtitle {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}

.case-study-narrative {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
  line-height: 1.75;
}

.case-breakdown-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.breakdown-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.breakdown-text {
  color: var(--text-secondary);
}

.case-study-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
}

/* Case Study Side / Visual Architecture Panel */
.case-study-side {
  background-color: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .case-study-side {
    border-top: none;
    border-left: 1px solid var(--border-subtle);
    padding: 3rem 2.25rem;
  }
}

.side-arch-box {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.side-arch-header {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.arch-flow-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.arch-flow-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-primary);
}

.arch-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
  font-size: 0.6875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.side-evidence-box {
  background-color: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.evidence-score {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-emerald);
  line-height: 1;
}

.evidence-caption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.375rem;
}

/* Secondary Showcase Item */
.secondary-showcase {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .secondary-showcase {
    grid-template-columns: 2fr 1fr;
    padding: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   8. EXPERIENCE & JOURNEY TIMELINE
   -------------------------------------------------------------------------- */
.timeline-wrap {
  position: relative;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-wrap::before {
  content: '';
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 1.25rem;
  width: 2px;
  background-color: var(--border-subtle);
}

@media (min-width: 768px) {
  .timeline-wrap::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  border: 3px solid var(--bg-canvas);
  transform: translateX(-50%);
  z-index: 2;
}

@media (min-width: 768px) {
  .timeline-marker {
    left: 50%;
  }
}

.timeline-card {
  position: relative;
  margin-left: 3rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition-fast);
}

.timeline-card:hover {
  border-color: var(--border-accent);
}

@media (min-width: 768px) {
  .timeline-item:nth-child(odd) .timeline-card {
    margin-left: 0;
    margin-right: calc(50% + 2rem);
  }

  .timeline-item:nth-child(even) .timeline-card {
    margin-left: calc(50% + 2rem);
    margin-right: 0;
  }
}

.timeline-period {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-emerald);
  margin-bottom: 0.375rem;
}

.timeline-role {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.timeline-org {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.timeline-bullets {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.timeline-bullet-item {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.timeline-bullet-item::before {
  content: '▹';
  color: var(--accent-emerald);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   9. TECH STACK (CURATED, NO FAKE PERCENTAGES)
   -------------------------------------------------------------------------- */
.stack-groups-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .stack-groups-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stack-groups-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stack-group-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.stack-group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border-subtle);
}

.stack-group-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stack-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stack-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.625rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
}

.stack-item-name {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.stack-item-role {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. CONTACT & DIRECT CHANNELS
   -------------------------------------------------------------------------- */
.contact-card-main {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem 1.5rem;
  text-align: center;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .contact-card-main {
    padding: 4rem 3rem;
  }
}

.contact-headline {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.contact-subtext {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.contact-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.contact-chip {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  text-align: left;
}

.contact-chip:hover {
  border-color: var(--accent-emerald);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.contact-chip-icon {
  font-size: 1.375rem;
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.contact-chip-body {
  display: flex;
  flex-direction: column;
}

.contact-chip-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-chip-val {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

/* Quick Copy Email Banner */
.copy-email-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.625rem 0.5rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-primary);
}

.copy-btn {
  padding: 0.4rem 0.875rem;
  border-radius: var(--radius-pill);
  background-color: var(--accent-emerald);
  color: var(--text-inverse);
  font-weight: 600;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background-color: #1ed79c;
}

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  background-color: var(--bg-canvas);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
  }
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-social-link {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  font-size: 1.125rem;
}

.footer-social-link:hover {
  color: var(--accent-emerald);
}

/* --------------------------------------------------------------------------
   12. TOAST NOTIFICATION
   -------------------------------------------------------------------------- */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--accent-emerald);
  color: var(--text-primary);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all var(--transition-normal);
}

.toast-msg.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* --------------------------------------------------------------------------
   13. ACCESSIBILITY: PREFERS 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;
  }
  .status-dot::after {
    display: none;
  }
}