/* ==========================================================================
   Dylan Akia Portfolio — Modern Editorial-Technical Visual Design System
   Architecture: Light & Dark Token System, Fluid Typography, Scaled Spacing
   Fonts: Space Grotesk (Display/Headings), Inter (Body), JetBrains Mono (Tech)
   ========================================================================== */

:root {
  /* Core Technical Neutrals (Light Mode: Warm Technical Paper) */
  --bg-page: #f8f9fa;
  --bg-page-alt: #f1f3f5;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-subtle: #f8fafc;
  --bg-mockup-header: #ebeef2;

  /* Typography Colors */
  --text-primary: #0f172a;       /* Deep Technical Slate */
  --text-secondary: #475569;     /* Slate 600 */
  --text-muted: #64748b;         /* Slate 500 */
  --text-inverse: #ffffff;

  /* Accent & Technical Palette */
  --accent: #0f766e;             /* Industrial Deep Teal */
  --accent-hover: #0d655f;
  --accent-light: #ccfbf1;
  --accent-soft: rgba(15, 118, 110, 0.08);
  --accent-glow: rgba(15, 118, 110, 0.2);

  --accent-alt: #d97706;         /* Technical Amber Accent */
  --accent-alt-soft: rgba(217, 119, 6, 0.08);

  --brand-cisco: #049fd9;
  --brand-aws: #ff9900;

  /* Borders & Hairlines */
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-strong: #94a3b8;
  --border-focus: #0f766e;

  /* Semantic Feedback */
  --status-success: #16a34a;
  --status-success-bg: #dcfce7;
  --status-error: #dc2626;
  --status-error-bg: #fee2e2;

  /* Elevation Shadows (Calibrated, No Muddy Blur) */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 20px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 35px -8px rgba(15, 23, 42, 0.1), 0 8px 16px -4px rgba(15, 23, 42, 0.05);

  /* Geometry & Rhythm */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;

  /* Dimensions */
  --header-height: 72px;
  --max-content-width: 1240px;

  /* Font Families */
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

/* Dark Theme Tokens (Refined Deep Slate & Luminous Cyan Accents) */
:root[data-theme="dark"] {
  --bg-page: #080b11;
  --bg-page-alt: #0d121c;
  --bg-surface: #121824;
  --bg-surface-elevated: #161e2e;
  --bg-surface-subtle: #192233;
  --bg-mockup-header: #101623;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8896aa;
  --text-inverse: #080b11;

  --accent: #2dd4bf;
  --accent-hover: #5eead4;
  --accent-light: rgba(45, 212, 191, 0.2);
  --accent-soft: rgba(45, 212, 191, 0.12);
  --accent-glow: rgba(45, 212, 191, 0.25);

  --accent-alt: #fbbf24;
  --accent-alt-soft: rgba(251, 191, 36, 0.12);

  --brand-cisco: #38bdf8;
  --brand-aws: #f59e0b;

  --border-subtle: #1e293b;
  --border-medium: #2c3b52;
  --border-strong: #475569;
  --border-focus: #2dd4bf;

  --status-success: #34d399;
  --status-success-bg: rgba(52, 211, 153, 0.15);
  --status-error: #f87171;
  --status-error-bg: rgba(248, 113, 113, 0.15);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 40px -8px rgba(0, 0, 0, 0.7);

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 1rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

/* Accessible Focus Ring */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--max-content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3.5vw, 2.5rem);
  padding-right: clamp(1.25rem, 3.5vw, 2.5rem);
}

/* Skip Navigation Link */
.skip-link {
  position: absolute;
  top: 1rem;
  left: -9999px;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background-color: var(--text-primary);
  color: var(--text-inverse);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.skip-link:focus {
  left: 1.5rem;
}

/* ==========================================================================
   Typography & Editorial Elements
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
  line-height: 1.68;
}

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

.section-lead {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 65ch;
  margin-top: 0.5rem;
  line-height: 1.55;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Global Site Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: rgba(248, 249, 250, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

:root[data-theme="dark"] .site-header {
  background-color: rgba(8, 11, 17, 0.88);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo-symbol {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
  font-size: 1.1rem;
}

.logo-text strong {
  color: var(--accent);
  margin-left: 1px;
}

.logo-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  background-color: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-left: 0.25rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
  border-radius: 1px;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--accent);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle Button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background-color: var(--accent-soft);
  transform: translateY(-1px);
}

.theme-icon {
  width: 18px;
  height: 18px;
}

.theme-icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-icon-sun {
  display: block;
}

/* Header Resume Button */
.btn-header-resume {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.btn-header-resume:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: border-color var(--transition-fast);
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 1px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Buttons & Action Styles
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-text {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  padding: 0.75rem 1rem;
}

.btn-text:hover {
  color: var(--accent);
  background-color: var(--accent-soft);
  border-color: var(--border-subtle);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
  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%);
}

:root[data-theme="dark"] .hero-bg-grid {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

/* Hero Status Pill */
.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.85rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  margin-bottom: 1.5rem;
}

.status-indicator {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
}

.status-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--status-success);
  opacity: 0.75;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.status-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-success);
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.status-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-name {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 0.75rem;
}

.hero-role-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1.35;
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 58ch;
  margin-bottom: 1.75rem;
}

/* Hero Specs Row */
.hero-specs-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-xs);
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.spec-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.spec-divider {
  width: 1px;
  height: 28px;
  background-color: var(--border-subtle);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Hero Visual / Profile Card */
.hero-visual {
  display: flex;
  justify-content: center;
}

.profile-card {
  width: 100%;
  max-width: 380px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.profile-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background-color: var(--bg-mockup-header);
  border-bottom: 1px solid var(--border-subtle);
}

.card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.card-dot.red { background-color: #ef4444; }
.card-dot.yellow { background-color: #f59e0b; }
.card-dot.green { background-color: #10b981; }

.card-title-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: 0.4rem;
}

.profile-img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--bg-page-alt);
  overflow: hidden;
}

.profile-img-container .avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform var(--transition-smooth);
}

.profile-card:hover .avatar {
  transform: scale(1.02);
}

.profile-badge-overlay {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.85rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-role {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.8rem;
}

.badge-campus {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #5eead4;
}

.profile-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 1rem 0.5rem;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.stat-caption {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.profile-stat-divider {
  width: 1px;
  height: 28px;
  background-color: var(--border-subtle);
}

/* ==========================================================================
   Shared Section Styling
   ========================================================================== */
.section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.section-alt {
  background-color: var(--bg-page-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-title-wrap h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.lead-paragraph {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.about-narrative p {
  margin-bottom: 1.25rem;
}

.about-commitments {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.commitment-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.commitment-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.commitment-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background-color: var(--accent-soft);
  color: var(--accent);
}

.commitment-text h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.commitment-text p {
  font-size: 0.92rem;
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* About Sidebar */
.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-box {
  padding: 1.75rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.sidebar-box-title {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.discipline-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.discipline-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.discipline-list .bullet {
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}

.discipline-list strong {
  display: block;
  font-size: 0.95rem;
}

.discipline-list .sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.info-callout {
  background-color: var(--accent-soft);
  border-color: rgba(15, 118, 110, 0.25);
}

.callout-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.callout-desc {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

.link-arrow:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Featured Projects Section (Product Case Study Compositions)
   ========================================================================== */
.project-showcase {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 5rem);
}

.project-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.project-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.project-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background-color: var(--bg-surface-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.project-num {
  font-weight: 700;
  color: var(--accent);
}

.project-domain {
  color: var(--text-secondary);
  font-weight: 500;
}

.project-timeline {
  color: var(--text-muted);
}

.project-body-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.35fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  align-items: center;
}

.project-body-grid.reverse {
  grid-template-columns: 1.15fr 1.35fr;
}

.project-info-col,
.project-preview-col {
  min-width: 0;
}

.project-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.project-tagline {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.project-breakdown {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.breakdown-block {
  padding-left: 0.9rem;
  border-left: 2px solid var(--border-medium);
}

.breakdown-block:hover {
  border-left-color: var(--accent);
}

.breakdown-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.breakdown-block p {
  font-size: 0.92rem;
  margin-bottom: 0;
  line-height: 1.55;
}

.project-tech-group {
  margin-bottom: 1.75rem;
}

.tech-group-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-list li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tag-list li:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: var(--accent-soft);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ==========================================================================
   Browser & Device Mockups
   ========================================================================== */
.browser-mockup {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  background-color: var(--bg-mockup-header);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.mockup-dots {
  display: flex;
  gap: 5px;
}

.mockup-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--border-medium);
}

.mockup-dots span:nth-child(1) { background-color: #f87171; }
.mockup-dots span:nth-child(2) { background-color: #fbbf24; }
.mockup-dots span:nth-child(3) { background-color: #34d399; }

.mockup-address {
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
  background-color: var(--bg-surface);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.mockup-chip {
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.mockup-chip.live {
  background-color: var(--status-success-bg);
  color: var(--status-success);
  border-color: rgba(22, 163, 74, 0.2);
  font-weight: 600;
}

.mockup-content {
  position: relative;
  background-color: var(--bg-page-alt);
}

.mockup-content.image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1e1f29;
  min-height: 280px;
}

.project-screenshot {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.browser-mockup:hover .project-screenshot {
  transform: scale(1.015);
}

/* ==========================================================================
   AI Quality Inspection Telemetry Viewport
   ========================================================================== */
.ai-hud-preview {
  padding: 1.5rem;
  background: radial-gradient(circle at 50% 30%, #0f172a 0%, #020617 100%);
  color: #f8fafc;
}

.ai-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.hud-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #94a3b8;
  letter-spacing: 0.08em;
}

.hud-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #f1f5f9;
}

.hud-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background-color: rgba(45, 212, 191, 0.15);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.3);
}

.ai-viewfinder {
  position: relative;
  height: 200px;
  background-color: rgba(15, 23, 42, 0.85);
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewfinder-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(45, 212, 191, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(45, 212, 191, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}

.crosshair {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: #2dd4bf;
  border-style: solid;
}

.cross-tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.cross-tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.cross-bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.cross-br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

.yolo-box {
  position: absolute;
  border: 2px solid #ef4444;
  border-radius: 3px;
  background-color: rgba(239, 68, 68, 0.15);
}

.yolo-box.box-1 {
  top: 35px;
  left: 45px;
  width: 170px;
  height: 90px;
  animation: box-pulse 3s ease-in-out infinite;
}

.yolo-box.box-2 {
  bottom: 25px;
  right: 50px;
  width: 190px;
  height: 70px;
  border-color: #10b981;
  background-color: rgba(16, 185, 129, 0.12);
}

@keyframes box-pulse {
  0%, 100% { border-color: #ef4444; }
  50% { border-color: #f87171; box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }
}

.yolo-tag {
  position: absolute;
  top: -20px;
  left: -2px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background-color: #ef4444;
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 2px;
  white-space: nowrap;
  font-weight: 600;
}

.yolo-tag.verified {
  background-color: #10b981;
}

.ai-hud-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  background-color: rgba(2, 6, 23, 0.7);
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.hud-stat-item {
  display: flex;
  flex-direction: column;
}

.hud-stat-item .label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
}

.hud-stat-item .val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: #f8fafc;
}

.hud-stat-item .status-flagged {
  color: #f87171;
}

/* ==========================================================================
   Multi-Diagram Gallery Switcher (AnimoTech Project)
   ========================================================================== */
.diagram-viewer {
  display: flex;
  flex-direction: column;
}

.diagram-frame {
  background-color: #161c28;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.diagram-frame .project-screenshot {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #121824;
}

.diagram-switcher {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: var(--border-subtle);
  border-top: 1px solid var(--border-subtle);
}

.diagram-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.5rem;
  background-color: var(--bg-surface);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-align: center;
}

.diagram-tab:hover {
  background-color: var(--bg-surface-subtle);
  color: var(--text-primary);
}

.diagram-tab.active {
  background-color: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
}

.diagram-tab .tab-index {
  color: var(--accent);
  font-weight: 700;
}

.diagram-caption {
  padding: 0.6rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background-color: var(--bg-surface-subtle);
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 0;
  text-align: center;
}

/* ==========================================================================
   Skills Matrix Section (6 Architectural Categories)
   ========================================================================== */
.skills-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.skill-category-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.skill-category-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.skill-cat-header {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.cat-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

.skill-cat-header h3 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.cat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.skill-pill-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
}

.skill-pill-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.skill-pill-list li:hover {
  border-color: var(--accent);
  background-color: var(--accent-soft);
}

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

.pill-context {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

/* ==========================================================================
   Editorial Timeline Section (Education & Experience)
   ========================================================================== */
.editorial-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  position: relative;
}

.timeline-row::before {
  content: "";
  position: absolute;
  left: 240px;
  top: 1.2rem;
  bottom: -2rem;
  width: 1px;
  background-color: var(--border-subtle);
}

.timeline-row:last-child::before {
  display: none;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding-top: 0.2rem;
}

.timeline-badge,
.timeline-badge-active {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
}

.timeline-badge {
  background-color: var(--bg-surface-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.timeline-badge-active {
  background-color: var(--status-success-bg);
  color: var(--status-success);
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-org {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.timeline-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.timeline-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.timeline-role {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.timeline-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

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

.highlight-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background-color: var(--bg-surface-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Certifications & Verified Credentials Grid
   ========================================================================== */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.credential-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

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

.cert-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.cert-issuer-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.cert-issuer-badge.cisco {
  background-color: rgba(4, 159, 217, 0.12);
  color: var(--brand-cisco);
  border: 1px solid rgba(4, 159, 217, 0.3);
}

.cert-issuer-badge.aws {
  background-color: rgba(255, 153, 0, 0.12);
  color: var(--brand-aws);
  border: 1px solid rgba(255, 153, 0, 0.3);
}

.cert-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cert-title {
  font-size: 1.125rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.cert-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.cert-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cert-provider {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-cert-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.btn-cert-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Contact Section & Structured Connect Card
   ========================================================================== */
.contact-card-wrapper {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.25fr;
}

.contact-info-panel {
  padding: clamp(2rem, 4vw, 3.5rem);
  background-color: var(--bg-surface-subtle);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.contact-pitch h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.contact-pitch p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.email-direct-box {
  padding: 1.25rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-xs);
}

.box-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.direct-email-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.direct-email-link:hover {
  color: var(--accent-hover);
}

.contact-points {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-points li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.point-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--accent);
  flex-shrink: 0;
}

.point-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.point-val {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Contact Form Panel */
.contact-form-panel {
  padding: clamp(2rem, 4vw, 3.5rem);
  background-color: var(--bg-surface);
}

.form-header {
  margin-bottom: 1.75rem;
}

.form-header h4 {
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}

.form-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-group .required {
  color: var(--status-error);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
  max-height: 400px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: var(--status-error);
  background-color: var(--status-error-bg);
}

.error-message {
  display: block;
  color: var(--status-error);
  font-size: 0.78rem;
  margin-top: 0.35rem;
  min-height: 1rem;
}

.btn-submit {
  width: 100%;
  padding: 0.85rem;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-success {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--status-success);
  margin-top: 1rem;
  min-height: 1.2rem;
}

.form-success.is-error {
  color: var(--status-error);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #0b0f19;
  color: #94a3b8;
  padding: 3.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-logo span {
  color: var(--accent);
}

.footer-bio {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
}

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

.social-links a {
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 500;
}

.social-links a:hover {
  color: #ffffff;
}

.copyright {
  font-size: 0.78rem;
  color: #475569;
  margin-bottom: 0;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Back to Top Floating Action Button
   ========================================================================== */
.scroll-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--text-primary);
  color: var(--text-inverse);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-medium);
  transition: all var(--transition-fast);
  z-index: 900;
  cursor: pointer;
}

.scroll-top:hover {
  transform: translateY(-3px);
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.scroll-top[hidden] {
  display: none;
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints & Layout Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-text {
    max-width: 700px;
  }

  .skills-matrix {
    grid-template-columns: repeat(2, 1fr);
  }

  .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-body-grid,
  .project-body-grid.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .yolo-tag {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-toggle {
    display: flex;
  }

  .btn-header-resume {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition-normal), opacity var(--transition-normal), visibility var(--transition-normal);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--border-subtle);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .timeline-row::before {
    display: none;
  }

  .skills-matrix {
    grid-template-columns: 1fr;
  }

  .credentials-grid {
    grid-template-columns: 1fr;
  }

  .hero-specs-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .spec-divider {
    width: 100%;
    height: 1px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .diagram-switcher {
    grid-template-columns: 1fr;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .status-ping,
  .yolo-box.box-1 {
    animation: none !important;
  }

  .avatar,
  .project-screenshot {
    transition: none !important;
  }
}
