/* ==========================================================================
   Base Variables & Reset — Dark Charcoal & Orange Accent
   ========================================================================== */
:root {
  --bg-main: #121212;
  --bg-surface: #1b1b1b;
  --bg-surface-elevated: #212121;
  --bg-subtle: rgba(255, 255, 255, 0.03);

  --accent-orange: #fd6f00;
  --accent-orange-hover: #e56300;
  --accent-orange-soft: rgba(253, 111, 0, 0.12);

  --text-white: #f8f8f8;
  --text-light: #dfdfdf;
  --text-muted: #9e9e9e;
  --text-dim: #757575;

  --border-subtle: #282828;
  --border-muted: #3a3a3a;

  --font-main: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'K2D', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition-base: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-light);
  font-family: var(--font-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base), border-color var(--transition-base), background-color var(--transition-base), transform var(--transition-base);
}

ul {
  list-style: none;
}

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

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

.section-padding {
  padding: 84px 0;
}

/* ==========================================================================
   Restrained Entrance Animation
   ========================================================================== */
@keyframes subtleFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: subtleFadeUp 0.45s ease-out both;
}

.hero-visual.fade-in {
  animation-delay: 0.08s;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 15.5px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base), transform var(--transition-base);
  border: 1.5px solid transparent;
  letter-spacing: 0.01em;
}

.btn-primary {
  background-color: var(--accent-orange);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-orange-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--border-muted);
}

.btn-outline:hover {
  color: var(--text-white);
  border-color: var(--accent-orange);
  background-color: rgba(253, 111, 0, 0.06);
  transform: translateY(-1px);
}

/* ==========================================================================
   Navbar & Personal Monogram Wordmark
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 22px 0;
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(12px);
  transition: padding 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 15px 0;
  border-bottom-color: var(--border-subtle);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  color: var(--text-white);
}

.logo-monogram {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-muted);
  color: var(--accent-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  transition: border-color var(--transition-base), background-color var(--transition-base);
}

.logo:hover .logo-monogram {
  border-color: var(--accent-orange);
  background-color: var(--accent-orange-soft);
}

.logo-wordmark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text-white);
}

.logo-dot {
  color: var(--accent-orange);
}

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

.nav-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-white);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background-color: var(--accent-orange);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-nav {
  padding: 9px 22px;
  font-size: 14.5px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: var(--transition-base);
}

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

/* ==========================================================================
   Hero Section — Clean Two-Column Layout & Balanced Vertical Spacing
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 48px 0 72px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 56px;
}

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

.hero-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-orange);
  margin-bottom: 14px;
}

.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background-color: var(--accent-orange);
  border-radius: 2px;
}

.hero-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.2vw, 54px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--text-white);
  margin-bottom: 20px;
}

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

.hero-intro {
  font-size: 17.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 540px;
}

/* Hero CTA Row */
.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

/* Social Media Circular Buttons */
.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-muted);
  background: var(--bg-surface);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.social-icon:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  transform: translateY(-1px);
}

/* Right Column: Grayscale Portrait Stage */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait-stage {
  position: relative;
  width: 440px;
  height: 500px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.portrait-circle {
  position: absolute;
  bottom: 0;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  z-index: 1;
}

.portrait-wrapper {
  position: relative;
  z-index: 2;
  width: 430px;
  height: 500px;
  border-radius: 0 0 215px 215px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-portrait {
  width: 92%;
  height: 98%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(100%) contrast(1.06);
  user-select: none;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 16.5px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ==========================================================================
   Accessibility & Scroll-Reveal Utilities
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
}

.js-reveal-ready .reveal-on-scroll {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

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

/* ==========================================================================
   Projects Section — Featured Showcase & Tailored Project Presentations
   ========================================================================== */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 42px;
}

.filter-btn {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 10px 22px;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
  white-space: nowrap;
}

.filter-btn:hover {
  color: var(--text-white);
  border-color: var(--border-muted);
}

.filter-btn.active,
.filter-btn[aria-pressed='true'] {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #ffffff;
}

.projects-showcase {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.portfolio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.portfolio-card:hover {
  border-color: rgba(253, 111, 0, 0.42);
}

.portfolio-card[hidden] {
  display: none !important;
}

/* Shared Project Typography & Meta Elements */
.project-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.project-role-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-orange);
  background: var(--accent-orange-soft);
  padding: 4px 10px;
  border-radius: 5px;
}

.project-version-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 3px 9px;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.project-desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.65;
}

.project-features {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-left: 0;
}

.project-features li {
  font-size: 13.8px;
  color: var(--text-muted);
  line-height: 1.55;
  position: relative;
  padding-left: 15px;
}

.project-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-orange);
}

.project-features li strong {
  color: var(--text-white);
  font-weight: 700;
}

.project-features li code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12.5px;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 5px;
  border-radius: 4px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 4px;
}

.tech-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 6px;
}

.project-repo-slug {
  font-size: 12.5px;
  color: var(--text-dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 7px;
  transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base), transform var(--transition-base);
  border: 1px solid transparent;
}

.project-btn-primary {
  background: var(--accent-orange);
  color: #ffffff;
}

.project-btn-primary:hover {
  background: var(--accent-orange-hover);
  transform: translateY(-1px);
}

.project-btn-secondary {
  background: transparent;
  color: var(--text-light);
  border-color: var(--border-muted);
}

.project-btn-secondary:hover {
  color: var(--text-white);
  border-color: var(--accent-orange);
  background: rgba(253, 111, 0, 0.08);
  transform: translateY(-1px);
}

/* 1. Featured Flagship Project — Download-X (DLX) */
.project-featured {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: center;
  padding: 32px;
}

.project-featured-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-featured-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.project-featured-subtitle {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: -8px;
}

.project-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid var(--border-subtle);
}

/* Genuine Screenshot Window Frame */
.project-featured-visual {
  width: 100%;
}

.app-window-frame {
  background: #0a0a0c;
  border: 1px solid var(--border-muted);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.app-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: #141417;
  border-bottom: 1px solid var(--border-subtle);
}

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

.window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-muted);
}

.window-dots span:first-child {
  background: var(--accent-orange);
}

.window-title {
  font-size: 11.5px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  color: var(--text-muted);
}

.app-screenshot-wrap {
  background: #050507;
  line-height: 0;
}

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

.app-window-caption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-muted);
  background: #141417;
  border-top: 1px solid var(--border-subtle);
  line-height: 1.45;
}

/* Secondary Projects Grid — NetX & TendaManager */
.projects-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: stretch;
}

.projects-secondary-grid.single-visible {
  grid-template-columns: 1fr;
}

.projects-secondary-grid.none-visible {
  display: none;
}

.project-entry {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-entry:hover {
  transform: translateY(-2px);
}

.project-entry-header {
  padding: 24px 26px 18px;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.project-entry-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 4px;
}

.project-entry-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.45;
}

.project-entry-body {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.project-entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 26px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-subtle);
}

/* Tailored Presentation 2: NetX Telemetry Pipeline */
.telemetry-pipeline {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-orange);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pipeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
}

.pipeline-stage {
  font-weight: 700;
  color: var(--text-white);
}

.pipeline-source {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 7px;
  border-radius: 4px;
}

/* Tailored Presentation 3: TendaManager Hardware & Protocol Matrix */
.router-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.router-spec-cell {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spec-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.spec-value {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-white);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 60px;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-portrait-stage {
  position: relative;
  width: 380px;
  height: 450px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.about-arch-bg {
  position: absolute;
  bottom: 0;
  width: 360px;
  height: 390px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 180px 180px 14px 14px;
  z-index: 1;
}

.about-portrait {
  position: relative;
  z-index: 2;
  width: 350px;
  height: 440px;
  object-fit: cover;
  object-position: top center;
  border-radius: 175px 175px 14px 14px;
  filter: grayscale(100%) contrast(1.06);
}

.about-text-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.about-headline {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 27px);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.35;
}

.about-bio {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
}

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

.about-domains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  margin: 8px 0 12px;
}

.domain-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px;
}

.domain-item h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
}

.domain-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.about-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-form {
  max-width: 840px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.form-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 15px 18px;
  color: var(--text-light);
  font-family: var(--font-main);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition-base), background-color var(--transition-base);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-input:focus {
  border-color: var(--accent-orange);
  background: var(--bg-surface-elevated);
}

.form-select {
  color: var(--text-light);
  appearance: none;
}

.form-select option {
  background: var(--bg-surface);
  color: var(--text-light);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.form-status {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  flex: 1;
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: var(--accent-orange);
}

.btn-send {
  padding: 12px 36px;
  margin-left: auto;
}

.btn-send:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 32px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--text-white);
}

.footer-socials {
  margin-bottom: 0;
}

.footer-contact-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 600;
}

.footer-contact-item:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  width: 100%;
  max-width: 640px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-dim);
}

.footer-bottom a {
  color: var(--text-muted);
}

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

/* ==========================================================================
   Responsive Design — Desktop, Tablet & Mobile
   ========================================================================== */
@media (max-width: 1120px) {
  .hero-grid {
    gap: 36px;
  }

  .portrait-stage {
    width: 390px;
    height: 450px;
  }

  .portrait-circle {
    width: 380px;
    height: 380px;
  }

  .portrait-wrapper {
    width: 380px;
    height: 450px;
    border-radius: 0 0 190px 190px;
  }

  .project-featured {
    gap: 28px;
    padding: 28px;
  }

  .projects-secondary-grid {
    gap: 22px;
  }
}

@media (max-width: 1024px) {
  .project-featured {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 960px) {
  .section-padding {
    padding: 68px 0;
  }

  .hero-section {
    padding: 36px 0 60px;
  }

  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-heading {
    align-items: center;
  }

  .hero-intro {
    margin-left: auto;
    margin-right: auto;
  }

  .about-text-content {
    align-items: center;
  }

  .about-domains {
    text-align: left;
  }

  .about-actions {
    justify-content: center;
  }

  .projects-secondary-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

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

  .container {
    padding: 0 20px;
  }

  .navbar {
    padding: 16px 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    font-size: 16.5px;
    padding: 6px 0;
    width: 100%;
    text-align: center;
  }

  .nav-link.active::after {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .portrait-stage {
    width: min(330px, 82vw);
    height: min(380px, 94vw);
  }

  .portrait-circle {
    width: min(320px, 80vw);
    height: min(320px, 80vw);
  }

  .portrait-wrapper {
    width: min(320px, 80vw);
    height: min(380px, 94vw);
    border-radius: 0 0 160px 160px;
  }

  .about-portrait-stage {
    width: min(310px, 80vw);
    height: min(370px, 94vw);
  }

  .about-arch-bg {
    width: min(295px, 76vw);
    height: min(325px, 84vw);
  }

  .about-portrait {
    width: min(285px, 74vw);
    height: min(360px, 92vw);
  }

  .project-featured {
    padding: 22px 20px;
    gap: 22px;
  }

  .project-entry-header {
    padding: 20px 20px 16px;
  }

  .project-entry-body {
    padding: 18px 20px;
  }

  .project-entry-footer {
    padding: 14px 20px;
  }

  .about-domains,
  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-send {
    width: 100%;
  }

  .footer-contact-bar {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section-padding {
    padding: 48px 0;
  }

  .btn-nav {
    padding: 8px 16px;
    font-size: 13.5px;
  }

  .hero-title {
    font-size: clamp(28px, 8vw, 36px);
  }

  .hero-intro {
    font-size: 16px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-cta .btn,
  .about-actions .btn {
    width: 100%;
  }

  .about-actions {
    flex-direction: column;
    width: 100%;
  }

  .portfolio-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 9px 14px;
    font-size: 13.5px;
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }

  .router-spec-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .project-featured-footer,
  .project-entry-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .project-actions {
    width: 100%;
  }

  .project-actions .project-btn {
    flex: 1;
    width: 100%;
  }
}

@media (max-width: 360px) {
  .btn-nav {
    display: none;
  }
}

@media (hover: none) {
  .portfolio-card:hover,
  .project-entry:hover,
  .project-btn-primary:hover,
  .project-btn-secondary:hover,
  .btn-primary:hover,
  .btn-outline:hover,
  .social-icon:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in,
  .js-reveal-ready .reveal-on-scroll {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
