/* =========================================================
   JOHN KALUMBA PORTFOLIO
   PREMIUM PROFESSIONAL STYLES
   Frontend Developer • Web Designer
========================================================= */


/* =========================================================
   DESIGN SYSTEM
========================================================= */

:root {
  --bg: #0d1713;
  --bg-secondary: #13211b;
  --surface: #17261f;
  --surface-hover: #1d3028;

  --border: #31463a;
  --border-light: rgba(214, 193, 150, 0.16);

  --primary: #c6a15b;
  --primary-light: #e1c27a;
  --primary-dark: #9b7a3d;

  --text: #f7f2e7;
  --text-secondary: #d9d1c2;
  --text-muted: #aaa18f;
  --text-subtle: #7f786b;

  --success: #34d399;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --container: 1120px;

  --shadow-sm:
    0 4px 14px rgba(0, 0, 0, 0.18);

  --shadow-md:
    0 12px 30px rgba(0, 0, 0, 0.22);

  --shadow-lg:
    0 20px 50px rgba(0, 0, 0, 0.28);

  --transition: 0.25s ease;
}


/* =========================================================
   RESET
========================================================= */

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

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

body {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  background: var(--bg);
  color: var(--text);

  line-height: 1.6;

  overflow-x: hidden;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

::selection {
  background: var(--primary);
  color: #0b120f;
}


/* =========================================================
   GLOBAL LAYOUT
========================================================= */

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

section {
  padding: 100px 0;
}

.section {
  position: relative;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 14px;

  color: var(--primary);

  font-size: 0.76rem;
  font-weight: 800;

  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";

  width: 30px;
  height: 2px;

  flex-shrink: 0;

  border-radius: 999px;

  background: var(--primary);
}

.section-heading h2 {
  margin-bottom: 16px;

  color: var(--text);

  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;

  letter-spacing: -0.045em;
}

.section-heading > p:last-child {
  max-width: 680px;

  color: var(--text-muted);

  font-size: 1rem;
  line-height: 1.8;
}


/* =========================================================
   HEADER / NAVIGATION
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(11, 17, 32, 0.88);

  border-bottom: 1px solid rgba(36, 50, 71, 0.75);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-container {
  min-height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
  display: inline-flex;
  align-items: center;

  gap: 10px;

  color: var(--text);

  text-decoration: none;

  white-space: nowrap;

  transition:
    opacity var(--transition),
    transform var(--transition);
}

.logo:hover {
  opacity: 0.96;
  transform: translateY(-1px);
}

.logo-mark {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border: 1px solid rgba(198, 161, 91, 0.45);
  border-radius: 10px;

  background:
    linear-gradient(
      145deg,
      rgba(198, 161, 91, 0.16),
      rgba(155, 122, 61, 0.08)
    );

  color: var(--primary-light);

  font-size: 0.82rem;
  font-weight: 900;

  letter-spacing: -0.08em;

  box-shadow:
    0 6px 18px rgba(155, 122, 61, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);

  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.logo-mark::after {
  content: "";

  position: absolute;

  width: 6px;
  height: 6px;

  right: 5px;
  top: 5px;

  border-radius: 50%;

  background: var(--primary);

  box-shadow:
    0 0 10px rgba(198, 161, 91, 0.6);
}

.logo:hover .logo-mark {
  border-color: var(--primary);

  background:
    linear-gradient(
      145deg,
      rgba(198, 161, 91, 0.22),
      rgba(155, 122, 61, 0.12)
    );

  color: var(--text);

  transform:
    translateY(-2px)
    rotate(-2deg);

  box-shadow:
    0 9px 24px rgba(155, 122, 61, 0.2);
}

.logo-name {
  color: var(--text);

  font-size: 1.22rem;
  font-weight: 800;

  letter-spacing: -0.035em;
}

.logo-name span {
  color: var(--primary);
}


/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.main-nav {
  display: flex;
  align-items: center;

  gap: 28px;
}

.main-nav a {
  position: relative;

  color: var(--text-secondary);

  text-decoration: none;

  font-size: 0.92rem;
  font-weight: 600;

  transition:
    color var(--transition);
}

.main-nav a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -8px;

  width: 0;
  height: 2px;

  border-radius: 999px;

  background: var(--primary);

  transition:
    width var(--transition);
}

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

.main-nav a:hover::after {
  width: 100%;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-toggle {
  display: none;

  width: 44px;
  height: 44px;

  align-items: center;
  justify-content: center;

  flex-direction: column;

  gap: 5px;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: var(--surface);

  color: var(--text);

  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.menu-toggle:hover {
  background: var(--surface-hover);

  border-color: var(--primary);

  transform: translateY(-1px);
}

.menu-toggle span {
  display: block;

  width: 19px;
  height: 2px;

  border-radius: 999px;

  background: var(--text);

  transition:
    transform var(--transition),
    opacity var(--transition);
}


/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;

  min-height: calc(100vh - 76px);

  display: flex;
  align-items: center;

  padding: 110px 0;

  overflow: hidden;
}

.hero::before {
  content: "";

  position: absolute;

  width: 560px;
  height: 560px;

  top: -190px;
  right: -180px;

  border-radius: 50%;

  background: rgba(155, 122, 61, 0.08);

  filter: blur(85px);

  pointer-events: none;
}

.hero::after {
  content: "";

  position: absolute;

  width: 260px;
  height: 260px;

  left: -150px;
  bottom: -130px;

  border-radius: 50%;

  background: rgba(198, 161, 91, 0.035);

  filter: blur(70px);

  pointer-events: none;
}

.hero-content {
  position: relative;

  z-index: 1;

  max-width: 880px;
}

.hero h1 {
  max-width: 850px;

  margin-bottom: 26px;

  color: var(--text);

  font-size: clamp(3rem, 7vw, 5.5rem);

  line-height: 0.98;

  letter-spacing: -0.055em;
}

.hero h1 span {
  display: block;

  color: var(--primary);
}

.hero-intro {
  max-width: 700px;

  margin-bottom: 14px;

  color: var(--text-secondary);

  font-size: clamp(1.05rem, 2vw, 1.2rem);

  line-height: 1.75;
}

.hero-intro strong {
  color: var(--text);
}

.hero-description {
  max-width: 680px;

  margin-bottom: 34px;

  color: var(--text-muted);

  font-size: clamp(1rem, 2vw, 1.1rem);

  line-height: 1.8;
}


/* =========================================================
   HERO BUTTONS
========================================================= */

.hero-buttons {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;

  margin-bottom: 34px;
}

.hero-buttons .btn {
  min-width: 150px;
}


/* =========================================================
   HERO TRUST
========================================================= */

.hero-trust {
  display: flex;
  flex-wrap: wrap;

  gap: 18px 28px;

  color: var(--text-muted);

  font-size: 0.88rem;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;

  gap: 8px;
}

.hero-trust span::before {
  content: "✓";

  color: var(--success);

  font-weight: 900;
}


/* =========================================================
   SOCIAL LINKS
========================================================= */

.social-links {
  display: flex;

  gap: 20px;

  margin-top: 26px;
}

.social-links a {
  color: var(--text-muted);

  text-decoration: none;

  font-size: 0.9rem;
  font-weight: 600;

  transition:
    color var(--transition),
    transform var(--transition);
}

.social-links a:hover {
  color: var(--primary);

  transform: translateY(-2px);
}


/* =========================================================
   BUTTON SYSTEM
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  min-height: 46px;

  padding: 11px 20px;

  border-radius: var(--radius-sm);

  text-decoration: none;

  font-size: 0.9rem;
  font-weight: 750;

  cursor: pointer;

  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

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

.btn-primary {
  background: var(--primary);

  color: #0b120f;

  border: 1px solid var(--primary);

  box-shadow:
    0 8px 24px rgba(155, 122, 61, 0.16);
}

.btn-primary:hover {
  background: var(--primary-light);

  border-color: var(--primary-light);

  box-shadow:
    0 12px 30px rgba(155, 122, 61, 0.24);
}

.btn-secondary {
  background: transparent;

  color: var(--text);

  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface);

  border-color: var(--primary);

  color: var(--primary-light);
}


/* =========================================================
   ABOUT
========================================================= */

#about {
  background: var(--bg-secondary);

  border-top: 1px solid rgba(36, 50, 71, 0.5);

  border-bottom: 1px solid rgba(36, 50, 71, 0.5);
}

.about-content {
  max-width: 760px;
}

.about-content p {
  margin-bottom: 20px;

  color: var(--text-secondary);

  font-size: 1rem;

  line-height: 1.85;
}

.about-content p:last-of-type {
  margin-bottom: 30px;
}


/* =========================================================
   SERVICES
========================================================= */

.services-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 18px;
}

.service-card {
  position: relative;

  padding: 28px;

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: var(--radius-md);

  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.service-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 24px;

  width: 38px;
  height: 2px;

  border-radius: 999px;

  background: var(--primary);

  opacity: 0.6;

  transition:
    width var(--transition),
    opacity var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);

  background: var(--surface-hover);

  border-color: rgba(198, 161, 91, 0.45);

  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  width: 65px;

  opacity: 1;
}

.service-card h3 {
  margin-bottom: 10px;

  color: var(--text);

  font-size: 1.08rem;

  letter-spacing: -0.015em;
}

.service-card p {
  color: var(--text-muted);

  font-size: 0.92rem;

  line-height: 1.7;
}


/* =========================================================
   PROJECTS
========================================================= */

#projects {
  background: var(--bg-secondary);

  border-top: 1px solid rgba(36, 50, 71, 0.5);

  border-bottom: 1px solid rgba(36, 50, 71, 0.5);
}

.projects-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 22px;
}

.project-card {
  display: flex;

  flex-direction: column;

  overflow: hidden;

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-sm);

  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);

  border-color: rgba(198, 161, 91, 0.4);

  box-shadow: var(--shadow-md);
}


/* =========================================================
   FEATURED PROJECT
========================================================= */

.featured-project {
  grid-column: 1 / -1;

  display: grid;

  grid-template-columns: 1.25fr 1fr;
}

.featured-project .project-preview {
  height: 100%;

  min-height: 360px;

  border-bottom: none;

  border-right: 1px solid var(--border);
}

.featured-project .project-content {
  display: flex;

  flex-direction: column;

  justify-content: center;

  padding: 42px;
}


/* =========================================================
   PROJECT PREVIEW
========================================================= */

.project-preview {
  position: relative;

  width: 100%;

  aspect-ratio: 16 / 9;

  overflow: hidden;

  background: var(--bg-secondary);

  border-bottom: 1px solid var(--border);
}

.project-preview::after {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      to bottom,
      transparent 65%,
      rgba(7, 17, 31, 0.22)
    );

  pointer-events: none;
}

.project-preview img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  object-position: top;

  transition:
    transform 0.45s ease;
}

.project-card:hover .project-preview img {
  transform: scale(1.025);
}


/* =========================================================
   PROJECT CONTENT
========================================================= */

.project-content {
  padding: 28px;
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 4px;
}

.project-category {
  display: inline-block;

  margin-bottom: 10px;

  color: var(--primary);

  font-size: 0.7rem;

  font-weight: 800;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.project-content h3 {
  margin-bottom: 12px;

  color: var(--text);

  font-size: 1.35rem;

  line-height: 1.25;

  letter-spacing: -0.025em;
}

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

  font-size: 0.92rem;

  line-height: 1.75;
}


/* =========================================================
   FEATURED PROJECT BADGE
========================================================= */

.project-badge {
  flex-shrink: 0;

  padding: 6px 10px;

  border: 1px solid rgba(198, 161, 91, 0.2);

  border-radius: 999px;

  background: rgba(198, 161, 91, 0.07);

  color: var(--primary-light);

  font-size: 0.68rem;

  font-weight: 750;

  white-space: nowrap;
}


/* =========================================================
   PROJECT FEATURES
========================================================= */

.project-features {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 12px;

  margin-top: 24px;
}

.feature-item {
  padding: 15px;

  background: rgba(255, 255, 255, 0.018);

  border: 1px solid var(--border-light);

  border-radius: 10px;
}

.feature-item strong {
  display: block;

  margin-bottom: 5px;

  color: var(--text);

  font-size: 0.82rem;
}

.feature-item span {
  display: block;

  color: var(--text-muted);

  font-size: 0.78rem;

  line-height: 1.6;
}


/* =========================================================
   PROJECT TECHNOLOGIES
========================================================= */

.project-tech {
  display: flex;

  flex-wrap: wrap;

  gap: 7px;

  margin-top: 18px;
}

.project-tech span {
  padding: 5px 9px;

  border: 1px solid var(--border);

  border-radius: 6px;

  background: rgba(255, 255, 255, 0.015);

  color: var(--text-muted);

  font-size: 0.72rem;

  font-weight: 650;

  transition:
    color var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.project-tech span:hover {
  color: var(--primary-light);

  border-color: rgba(198, 161, 91, 0.3);

  background: rgba(198, 161, 91, 0.04);
}


/* =========================================================
   PROJECT LINKS
   IMPORTANT: Keeps Live Demo buttons visible
========================================================= */

.project-links {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-top: 22px;

  position: relative;

  z-index: 5;
}

.featured-project .project-links {
  margin-top: 26px;
}

.project-links .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;

  padding: 9px 17px;

  text-decoration: none;

  font-size: 0.88rem;

  visibility: visible;

  opacity: 1;

  position: relative;

  z-index: 6;
}


/* =========================================================
   BALANCE PROJECT CARDS
========================================================= */

.project-card:not(.featured-project) .project-content {
  min-height: 100%;

  display: flex;

  flex-direction: column;
}

.project-card:not(.featured-project) .project-links {
  margin-top: auto;

  padding-top: 22px;
}


/* =========================================================
   SKILLS
========================================================= */

#skills {
  background: var(--bg);
}

.skills-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 12px;
}

.skills-grid span {
  display: flex;

  align-items: center;
  justify-content: center;

  min-height: 54px;

  padding: 12px;

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: var(--radius-md);

  color: var(--text-secondary);

  font-size: 0.84rem;

  font-weight: 650;

  text-align: center;

  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    color var(--transition);
}

.skills-grid span:hover {
  transform: translateY(-3px);

  background: var(--surface-hover);

  border-color: rgba(198, 161, 91, 0.4);

  color: var(--primary-light);
}


/* =========================================================
   PROCESS
========================================================= */

#process {
  background: var(--bg-secondary);

  border-top: 1px solid rgba(36, 50, 71, 0.5);

  border-bottom: 1px solid rgba(36, 50, 71, 0.5);
}

.process-grid {
  display: grid;

  grid-template-columns:
    repeat(5, minmax(0, 1fr));

  gap: 14px;
}

.process-card {
  position: relative;

  padding: 26px 20px;

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: var(--radius-md);

  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.process-card:hover {
  transform: translateY(-4px);

  border-color: rgba(198, 161, 91, 0.4);

  box-shadow: var(--shadow-sm);
}

.process-card > span {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  margin-bottom: 18px;

  border-radius: 9px;

  background: rgba(198, 161, 91, 0.1);

  color: var(--primary);

  font-size: 0.8rem;

  font-weight: 800;
}

.process-card h3 {
  margin-bottom: 8px;

  color: var(--text);

  font-size: 1rem;
}

.process-card p {
  color: var(--text-muted);

  font-size: 0.84rem;

  line-height: 1.65;
}


/* =========================================================
   CTA
========================================================= */

.cta-section {
  padding: 100px 0;
}

.cta {
  position: relative;

  overflow: hidden;

  text-align: center;

  padding: 72px 40px;

  background:
    linear-gradient(
      145deg,
      rgba(198, 161, 91, 0.08),
      rgba(155, 122, 61, 0.025)
    );

  border: 1px solid rgba(198, 161, 91, 0.18);

  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-sm);
}

.cta::before {
  content: "";

  position: absolute;

  width: 260px;
  height: 260px;

  top: -170px;
  left: 50%;

  transform: translateX(-50%);

  border-radius: 50%;

  background: rgba(198, 161, 91, 0.06);

  filter: blur(50px);

  pointer-events: none;
}

.cta > * {
  position: relative;

  z-index: 1;
}

.cta .eyebrow {
  justify-content: center;
}

.cta h2 {
  margin-bottom: 16px;

  color: var(--text);

  font-size: clamp(2rem, 5vw, 3.2rem);

  line-height: 1.05;

  letter-spacing: -0.045em;
}

.cta p:not(.eyebrow) {
  max-width: 600px;

  margin: 0 auto 28px;

  color: var(--text-muted);

  line-height: 1.8;
}


/* =========================================================
   CONTACT
========================================================= */

#contact {
  background: var(--bg-secondary);

  border-top: 1px solid rgba(36, 50, 71, 0.5);
}

.contact-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 16px;
}

.contact-card {
  display: block;

  padding: 26px;

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: var(--radius-md);

  text-decoration: none;

  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);

  background: var(--surface-hover);

  border-color: rgba(198, 161, 91, 0.4);

  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  margin-bottom: 7px;

  color: var(--text);

  font-size: 1rem;
}

.contact-card p {
  color: var(--text-muted);

  font-size: 0.88rem;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
  padding: 46px 0 36px;

  background: #080d19;

  border-top: 1px solid var(--border);

  text-align: center;
}

.footer .logo {
  justify-content: center;

  margin-bottom: 18px;
}

.footer > .container > p {
  margin-bottom: 8px;

  color: var(--text-muted);

  font-size: 0.82rem;
}

.footer > .container > p:last-child {
  margin-top: 22px;

  padding-top: 20px;

  border-top: 1px solid rgba(36, 50, 71, 0.65);

  color: var(--text-subtle);

  font-size: 0.75rem;
}

.footer a:not(.logo) {
  color: var(--text-secondary);

  text-decoration: none;

  transition: color var(--transition);
}

.footer a:not(.logo):hover {
  color: var(--primary);
}


/* =========================================================
   CARD UTILITY
========================================================= */

.card {
  box-shadow: var(--shadow-sm);
}


/* =========================================================
   FOCUS ACCESSIBILITY
========================================================= */

:focus-visible {
  outline: 2px solid var(--primary);

  outline-offset: 3px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

  section {
    padding: 85px 0;
  }

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

  .skills-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .featured-project {
    grid-template-columns: 1fr;
  }

  .featured-project .project-preview {
    min-height: auto;

    aspect-ratio: 16 / 9;

    border-right: none;

    border-bottom: 1px solid var(--border);
  }

  .featured-project .project-content {
    padding: 32px;
  }
}


/* =========================================================
   MOBILE NAVIGATION
========================================================= */

@media (max-width: 700px) {

  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    position: sticky;
  }

  .nav-container {
    min-height: 68px;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;

    top: calc(100% + 1px);

    left: 14px;
    right: 14px;

    display: none;

    flex-direction: column;

    align-items: stretch;

    gap: 0;

    padding: 8px;

    background: rgba(15, 23, 42, 0.98);

    border: 1px solid var(--border);

    border-radius: 14px;

    box-shadow: var(--shadow-lg);

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    display: block;

    padding: 13px 14px;

    border-radius: 9px;

    color: var(--text-secondary);
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a:hover {
    background: var(--surface);

    color: var(--text);
  }

  .hero {
    min-height: auto;

    padding: 80px 0 90px;
  }

  .hero h1 {
    font-size:
      clamp(2.65rem, 13vw, 4rem);
  }

  .hero-description {
    line-height: 1.7;
  }

  .hero-buttons {
    flex-direction: column;

    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-trust {
    gap: 12px 18px;
  }

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

  .project-card:not(.featured-project) .project-content {
    min-height: auto;
  }

  .project-card:not(.featured-project) .project-links {
    margin-top: 22px;

    padding-top: 0;
  }

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

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

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

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

  .cta {
    padding: 58px 28px;
  }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

  section {
    padding: 70px 0;
  }

  .container {
    width: min(100% - 24px, var(--container));
  }

  .nav-container {
    min-height: 64px;
  }

  .logo-name {
    font-size: 1.05rem;
  }

  .logo-mark {
    width: 37px;
    height: 37px;
  }

  .hero {
    padding: 65px 0 75px;
  }

  .hero h1 {
    font-size: 2.65rem;

    letter-spacing: -0.05em;
  }

  .hero-intro {
    font-size: 1rem;
  }

  .hero-eyebrow {
    font-size: 0.7rem;
  }

  .eyebrow {
    font-size: 0.68rem;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section-heading h2 {
    font-size: 2.1rem;
  }

  .project-header {
    flex-direction: column;

    gap: 4px;
  }

  .project-content {
    padding: 22px;
  }

  .featured-project .project-content {
    padding: 24px 22px;
  }

  .project-preview {
    aspect-ratio: 16 / 10;
  }

  .project-features {
    grid-template-columns: 1fr;
  }

  .project-links {
    flex-direction: column;
  }

  .project-links .btn {
    width: 100%;
  }

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

    gap: 8px;
  }

  .skills-grid span {
    min-height: 50px;

    padding: 12px 8px;

    font-size: 0.76rem;
  }

  .process-card {
    padding: 22px 18px;
  }

  .cta-section {
    padding: 70px 0;
  }

  .cta {
    padding: 50px 22px;
  }

  .cta h2 {
    font-size: 2.15rem;
  }

  .contact-card {
    padding: 22px;
  }

  .footer {
    padding: 40px 0 30px;
  }
}


/* =========================================================
   VERY SMALL SCREENS
========================================================= */

@media (max-width: 360px) {

  .container {
    width: min(100% - 20px, var(--container));
  }

  .logo-name {
    font-size: 0.98rem;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

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

  .hero-trust {
    flex-direction: column;

    gap: 8px;
  }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;

    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;
  }
}

/* =========================================================
   CLASSIC LUXURY TYPOGRAPHY
========================================================= */

body {
  background:
    radial-gradient(circle at 82% 8%, rgba(198,161,91,.07), transparent 28%),
    var(--bg);
}

h1, h2, h3, .logo-name {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

h1, h2 {
  text-wrap: balance;
}

.hero::before,
.section::before {
  pointer-events: none;
}

.card,
.project-card,
.service-card,
.process-card,
.contact-card,
.cta {
  border-color: rgba(198,161,91,.20);
}


/* =========================================================
   CONVERSION-FOCUSED PORTFOLIO UPGRADE
========================================================= */

.site-header {
  background: rgba(13, 23, 19, 0.92);
  border-bottom-color: rgba(198, 161, 91, 0.16);
}

.hero {
  background:
    linear-gradient(180deg, rgba(198, 161, 91, 0.025), transparent 42%);
}

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

.hero h1 {
  max-width: 900px;
  font-size: clamp(3.25rem, 7vw, 6rem);
  line-height: 0.96;
}

.hero-intro {
  font-size: clamp(1.1rem, 2vw, 1.28rem);
}

.hero-buttons {
  margin-top: 8px;
}

.hero-buttons .btn-primary {
  min-width: 190px;
}

.hero-trust {
  padding-top: 4px;
}

.services-grid {
  align-items: stretch;
}

.service-card {
  min-height: 235px;
  display: flex;
  flex-direction: column;
}

.service-card p:first-of-type {
  margin: 2px 0 14px;
  color: var(--primary-light);
  font-size: 1.05rem;
  font-weight: 800;
}

.service-card p:last-child {
  margin-top: auto;
}

.project-card {
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.project-category {
  letter-spacing: 0.14em;
}

.project-content h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.project-description {
  max-width: 62ch;
}

.feature-item {
  background: rgba(198, 161, 91, 0.025);
}

.cta {
  padding: 82px 40px;
  border-color: rgba(198, 161, 91, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(198,161,91,.10), transparent 45%),
    linear-gradient(145deg, rgba(198,161,91,.08), rgba(155,122,61,.025));
}

.cta h2 {
  max-width: 760px;
  margin-inline: auto;
}

.contact-grid {
  gap: 18px;
}

.contact-card {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-card h3 {
  color: var(--primary-light);
}

.footer {
  background: #07100c;
  border-top-color: rgba(198,161,91,.16);
}

@media (max-width: 700px) {
  .hero h1 {
    font-size: clamp(2.75rem, 13vw, 4.15rem);
  }

  .service-card {
    min-height: 0;
  }

  .cta {
    padding: 58px 24px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.65rem;
  }
}
