/*
Theme Name: DevPortfolio
Description: A modern dark developer portfolio, editable with Elementor and prepared for commercial distribution.
Author: DevPortfolio Studio
Version: 2.0.0-rc.13
Requires at least: 6.8
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: devportfolio
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* =========================================================
   DEVPORTFOLIO — STANDALONE COMMERCIAL VISUAL SYSTEM
   The complete frontend design intentionally lives here.
   Elementor controls content and section order; this file
   guarantees the commercial visual result and responsive QA.
   ========================================================= */

:root {
  color-scheme: dark;
  --dp-bg: #020814;
  --dp-bg-deep: #01050d;
  --dp-surface: #071322;
  --dp-surface-2: #0a192b;
  --dp-surface-3: #0d2036;
  --dp-border: rgba(132, 177, 255, .16);
  --dp-border-strong: rgba(87, 151, 255, .34);
  --dp-text: #f5f8ff;
  --dp-muted: #9eafc6;
  --dp-muted-strong: #c5d2e3;
  --dp-accent: #1677ff;
  --dp-accent-button: #0067d9;
  --dp-accent-button-hover: #0057c2;
  --dp-accent-2: #39c9ff;
  --dp-accent-soft: rgba(22, 119, 255, .15);
  --dp-success: #54e5a5;
  --dp-warning: #ffbe3d;
  --dp-danger: #ff6584;
  --dp-radius-sm: 10px;
  --dp-radius: 18px;
  --dp-radius-lg: 28px;
  --dp-shadow-sm: 0 14px 34px rgba(0, 0, 0, .22);
  --dp-shadow: 0 24px 70px rgba(0, 0, 0, .34);
  --dp-glow: 0 0 42px rgba(22, 119, 255, .25);
  --dp-shell: min(1180px, calc(100vw - 48px));
  --dp-header-h: 78px;
  --dp-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --dp-transition: 220ms cubic-bezier(.2, .75, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--dp-header-h) + 28px); }
body.devportfolio-theme,
body.devportfolio-theme .site-main,
body.devportfolio-theme #main-container {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background:
    radial-gradient(circle at 13% 9%, rgba(22,119,255,.13), transparent 26rem),
    radial-gradient(circle at 86% 14%, rgba(57,201,255,.08), transparent 28rem),
    var(--dp-bg);
  color: var(--dp-text);
  font-family: var(--dp-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.devportfolio-theme.admin-bar { --dp-admin-offset: 32px; }
body.devportfolio-theme a { color: inherit; text-decoration: none; }
body.devportfolio-theme img, body.devportfolio-theme svg { max-width: 100%; height: auto; }
body.devportfolio-theme button, body.devportfolio-theme input, body.devportfolio-theme textarea { font: inherit; }
body.devportfolio-theme ::selection { background: rgba(57,201,255,.28); color: #fff; }

.dp-skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100000;
  padding: 12px 18px; border-radius: 10px; background: #fff; color: #00122c;
  font-weight: 800; transition: top var(--dp-transition);
}
.dp-skip-link:focus { top: 16px; }

/* Elementor shell neutralization */
body.devportfolio-theme .elementor,
body.devportfolio-theme .elementor-section-wrap,
body.devportfolio-theme .elementor-location-single,
body.devportfolio-theme .elementor-location-archive { width: 100%; }
body.devportfolio-theme .dp-section-shell,
body.devportfolio-theme .dp-section-shell.e-con,
body.devportfolio-theme .elementor-element.dp-section-shell {
  width: 100%; max-width: none; margin: 0; padding: 0; gap: 0;
  --container-max-width: none;
}
body.devportfolio-theme .dp-section-shell > .e-con-inner { max-width: none; padding: 0; gap: 0; }
body.devportfolio-theme .elementor-widget-devportfolio-header,
body.devportfolio-theme .elementor-widget-devportfolio-footer,
body.devportfolio-theme .elementor-widget-devportfolio-hero,
body.devportfolio-theme .elementor-widget-devportfolio-tech,
body.devportfolio-theme .elementor-widget-devportfolio-projects,
body.devportfolio-theme .elementor-widget-devportfolio-services,
body.devportfolio-theme .elementor-widget-devportfolio-profile,
body.devportfolio-theme .elementor-widget-devportfolio-testimonials,
body.devportfolio-theme .elementor-widget-devportfolio-cta,
body.devportfolio-theme .elementor-widget-devportfolio-page-intro { width: 100%; }
body.devportfolio-theme .elementor-widget-container { min-width: 0; }
body.devportfolio-theme .page-title, body.devportfolio-theme .entry-header { display: none; }

.dp-shell { width: var(--dp-shell); margin-inline: auto; }
.dp-main { min-height: 68vh; }
.dp-section { position: relative; padding: clamp(72px, 8vw, 118px) 0; isolation: isolate; }
.dp-section--compact { padding-block: clamp(50px, 6vw, 78px); }
.dp-section--surface::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 25, 44, .52), rgba(3, 13, 26, .82));
  border-block: 1px solid rgba(132,177,255,.08);
}
.dp-section-heading { max-width: 730px; margin-bottom: 38px; }
.dp-section-heading--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.dp-section-heading--center { margin-inline: auto; text-align: center; }
.dp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 30px;
  padding: 5px 11px; border: 1px solid rgba(57,201,255,.42); border-radius: 999px;
  background: rgba(8, 53, 96, .32); color: #66d7ff; text-transform: uppercase;
  letter-spacing: .12em; font-size: 11px; font-weight: 800;
}
.dp-title-xl, .dp-title-lg, .dp-title-md { margin: 0; color: var(--dp-text); letter-spacing: -.045em; line-height: 1.03; }
.dp-title-xl { margin-top: 20px; max-width: 690px; font-size: clamp(44px, 6vw, 78px); font-weight: 850; }
.dp-title-lg { margin-top: 17px; font-size: clamp(34px, 4.2vw, 58px); font-weight: 830; }
.dp-title-md { font-size: clamp(25px, 2.3vw, 34px); font-weight: 800; }
.dp-highlight { color: var(--dp-accent); text-shadow: 0 0 30px rgba(22,119,255,.25); }
.dp-lead { margin: 20px 0 0; color: var(--dp-muted-strong); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.75; }
.dp-copy { color: var(--dp-muted); line-height: 1.75; }
.dp-link { display: inline-flex; align-items: center; gap: 8px; color: #63cfff; font-weight: 750; }
.dp-link::after { content: "→"; transition: transform var(--dp-transition); }
.dp-link:hover::after { transform: translateX(4px); }

.dp-button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px;
  padding: 0 20px; border: 1px solid transparent; border-radius: 11px; cursor: pointer;
  font-weight: 800; line-height: 1; transition: transform var(--dp-transition), box-shadow var(--dp-transition), background var(--dp-transition), border-color var(--dp-transition);
}
.dp-button:hover { transform: translateY(-2px); }
.dp-button--primary { background: linear-gradient(135deg, var(--dp-accent-button), var(--dp-accent-button-hover)); color: #fff; box-shadow: 0 14px 32px rgba(0,103,217,.28); }
.dp-button--primary:hover { background: linear-gradient(135deg, var(--dp-accent-button-hover), var(--dp-accent-button)); box-shadow: 0 18px 40px rgba(0,103,217,.4); }
.dp-button--ghost { border-color: var(--dp-border-strong); background: rgba(4, 15, 29, .74); color: var(--dp-text); }
.dp-button--ghost:hover { border-color: rgba(57,201,255,.62); background: rgba(10, 35, 61, .82); }
.dp-button svg { width: 18px; height: 18px; }
.dp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.dp-card {
  border: 1px solid var(--dp-border); border-radius: var(--dp-radius);
  background: linear-gradient(145deg, rgba(12,31,53,.88), rgba(5,17,31,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), var(--dp-shadow-sm);
}
.dp-card :where(h1,h2,h3,h4,h5,h6) { color: var(--dp-text); }


/* Header */
/*
 * The sticky responsibility lives in a theme-level wrapper rather than in
 * the Elementor template itself. Elementor can add layout ancestors that
 * break position: sticky; the outer wrapper is always a direct body child.
 */
.dp-header-sticky {
  position: sticky;
  top: var(--dp-admin-offset, 0px);
  z-index: 9999;
  width: 100%;
  isolation: isolate;
}
.dp-header-sticky > .elementor { width: 100%; }
.dp-site-header {
  position: sticky; top: var(--dp-admin-offset, 0); z-index: 9999;
  border-bottom: 1px solid rgba(117,165,235,.12);
  background: rgba(2,8,20,.78); backdrop-filter: blur(18px) saturate(140%);
  transition: background var(--dp-transition), box-shadow var(--dp-transition);
}
.dp-header-sticky .dp-site-header { position: relative; top: auto; z-index: auto; }
.dp-site-header.is-scrolled { background: rgba(2,8,20,.93); box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.dp-header__inner { min-height: var(--dp-header-h); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; }
.dp-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 850; letter-spacing: -.025em; white-space: nowrap; }
.dp-brand__mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid rgba(57,201,255,.26); background: linear-gradient(145deg, rgba(22,119,255,.24), rgba(6,20,38,.86));
  color: #54d0ff; box-shadow: var(--dp-glow);
}
.dp-brand__mark svg { width: 23px; height: 23px; }
.dp-brand__logo { display: block; width: auto; max-width: 150px; max-height: 50px; object-fit: contain; }
.dp-brand--image { gap: 0; }
.dp-brand--image_text .dp-brand__logo { margin-right: 2px; }
.dp-brand__text { display: inline-flex; align-items: baseline; }
.dp-brand__accent { color: var(--dp-accent-2); }
.dp-nav { justify-self: end; }
.dp-nav__title { display: none; }
.dp-nav__list { display: flex; align-items: center; gap: 29px; list-style: none; margin: 0; padding: 0; }
.dp-nav__link, .dp-nav__list a { position: relative; color: var(--dp-muted-strong); font-size: 14px; font-weight: 700; }
.dp-nav__link::after, .dp-nav__list a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--dp-accent-2); transition: right var(--dp-transition); }
.dp-nav__link:hover, .dp-nav__link:focus-visible, .dp-nav__list a:hover, .dp-nav__list a:focus-visible { color: #fff; }
.dp-nav__link:hover::after, .dp-nav__link:focus-visible::after, .dp-nav__list a:hover::after, .dp-nav__list a:focus-visible::after { right: 0; }
.dp-header__cta { min-height: 42px; padding-inline: 17px; font-size: 13px; }
.dp-menu-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--dp-border-strong); border-radius: 11px;
  background: rgba(7,19,34,.9); color: #fff; cursor: pointer;
}
.dp-menu-toggle__lines, .dp-menu-toggle__lines::before, .dp-menu-toggle__lines::after {
  display: block; width: 20px; height: 2px; margin: auto; border-radius: 999px; background: currentColor; transition: transform var(--dp-transition), opacity var(--dp-transition);
}
.dp-menu-toggle__lines { position: relative; }
.dp-menu-toggle__lines::before, .dp-menu-toggle__lines::after { content: ""; position: absolute; left: 0; }
.dp-menu-toggle__lines::before { top: -6px; }
.dp-menu-toggle__lines::after { top: 6px; }
.dp-menu-toggle[aria-expanded="true"] .dp-menu-toggle__lines { background: transparent; }
.dp-menu-toggle[aria-expanded="true"] .dp-menu-toggle__lines::before { transform: translateY(6px) rotate(45deg); }
.dp-menu-toggle[aria-expanded="true"] .dp-menu-toggle__lines::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.dp-hero { min-height: calc(100svh - var(--dp-header-h)); display: flex; align-items: center; padding-block: clamp(74px, 8vw, 112px); }
.dp-hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: 4%; top: 7%; z-index: -1;
  background: radial-gradient(circle, rgba(22,119,255,.22), transparent 67%); filter: blur(12px); pointer-events: none;
}
.dp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(400px, .96fr); align-items: center; gap: clamp(44px, 7vw, 96px); }
.dp-hero__lead { max-width: 640px; }
.dp-hero__meta { display: flex; flex-wrap: wrap; gap: 15px 22px; margin-top: 28px; color: var(--dp-muted); font-size: 13px; font-weight: 700; }
.dp-hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.dp-hero__meta span::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--dp-success); box-shadow: 0 0 14px rgba(84,229,165,.6); }
.dp-hero__visual { position: relative; min-height: 500px; display: grid; place-items: center; isolation: isolate; }
.dp-hero__visual::before { content: ""; position: absolute; inset: 8% -3% 2%; z-index: -2; background-image: radial-gradient(rgba(78,148,255,.3) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(circle, #000 22%, transparent 72%); opacity: .48; }
.dp-hero__visual::after { content: ""; position: absolute; width: 82%; aspect-ratio: 1; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(22,119,255,.24), rgba(57,201,255,.05) 48%, transparent 70%); filter: blur(15px); }
.dp-hero-stage { position: relative; width: min(100%, 620px); min-height: 500px; display: grid; place-items: center; padding: 16px 24px 138px; }
.dp-hero-stage__art { position: relative; z-index: 2; width: 100%; display: grid; place-items: center; transform: translate(18px, -8px); }
.dp-hero__image { display: block; width: min(100%, 550px); max-height: 390px; object-fit: contain; filter: drop-shadow(0 34px 55px rgba(0,0,0,.55)); }
.dp-hero-profile-chip { position: absolute; left: clamp(4px, 2vw, 28px); bottom: 8px; z-index: 6; width: min(410px, 78%); min-height: 164px; display: grid; grid-template-columns: 132px minmax(0,1fr); align-items: center; gap: 18px; padding: 12px 22px 12px 12px; border: 1px solid rgba(111,174,255,.38); border-radius: 26px; background: linear-gradient(135deg, rgba(10,34,58,.98), rgba(3,13,25,.97)); box-shadow: 0 28px 65px rgba(0,0,0,.52), 0 0 44px rgba(22,119,255,.17); backdrop-filter: blur(16px); }
.dp-hero-profile-chip::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(115deg, rgba(95,214,255,.08), transparent 42%); }
.dp-hero-profile-chip__media { position: relative; z-index: 1; width: 132px; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid rgba(95,214,255,.44); border-radius: 20px; background: #07182b; box-shadow: 0 14px 30px rgba(0,0,0,.35); isolation: isolate; }
.dp-hero-profile-chip__media > .dp-hero-profile-chip__photo { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; min-width: 100%; min-height: 100%; max-width: none !important; max-height: none !important; margin: 0; object-fit: cover !important; transform: translateZ(0); }
.dp-photo-position--top { object-position: center top !important; }
.dp-photo-position--center { object-position: center center !important; }
.dp-photo-position--bottom { object-position: center bottom !important; }
.dp-hero-profile-chip__copy { position: relative; z-index: 1; min-width: 0; display: grid; gap: 7px; }
.dp-hero-profile-chip__copy span { color: #62d8ff; font-size: 11px; font-weight: 850; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; }
.dp-hero-profile-chip__copy strong { overflow-wrap: anywhere; color: #fff; font-size: clamp(25px, 2.35vw, 32px); letter-spacing: -.04em; line-height: 1.02; }
.dp-hero-stage--profile-only { min-height: 390px; padding: 0; }
.dp-hero-stage--profile-only .dp-hero-profile-chip { position: relative; left: auto; bottom: auto; width: min(100%, 470px); grid-template-columns: 160px minmax(0,1fr); padding: 16px; }
.dp-hero-stage--profile-only .dp-hero-profile-chip__media { width: 160px; }
.dp-float-chip {
  position: absolute; z-index: 3; display: grid; place-items: center; width: 62px; height: 62px;
  border: 1px solid rgba(70,164,255,.35); border-radius: 16px; background: rgba(7,24,43,.84); backdrop-filter: blur(12px);
  color: #5fd6ff; font-weight: 850; box-shadow: 0 18px 38px rgba(0,0,0,.38), 0 0 30px rgba(22,119,255,.18);
}
.dp-float-chip--1 { left: -10px; top: 18%; transform: rotate(-8deg); }
.dp-float-chip--2 { right: -10px; top: 18%; transform: rotate(8deg); }
.dp-float-chip--3 { right: 8%; bottom: -12px; transform: rotate(5deg); }

/* Technology stack */
.dp-tech-band { padding: 0 0 34px; }
.dp-tech-panel { padding: 20px; border-radius: 17px; border: 1px solid var(--dp-border); background: rgba(5,17,31,.74); box-shadow: var(--dp-shadow-sm); }
.dp-tech-label { margin-bottom: 13px; text-align: center; color: #4fcfff; font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.dp-tech-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 9px; }
.dp-tech-card { min-height: 82px; display: grid; place-items: center; align-content: center; gap: 7px; border: 1px solid rgba(132,177,255,.11); border-radius: 12px; background: linear-gradient(160deg, rgba(12,31,53,.9), rgba(5,17,31,.75)); transition: transform var(--dp-transition), border-color var(--dp-transition), background var(--dp-transition); }
.dp-tech-card:hover { transform: translateY(-4px); border-color: rgba(57,201,255,.42); background: rgba(10,34,58,.9); }
.dp-tech-card__icon { display: grid; place-items: center; width: 30px; height: 30px; color: #4fcfff; }
.dp-tech-card--react .dp-tech-card__icon { color: #50d7ff; }
.dp-tech-card--nextjs .dp-tech-card__icon { color: #ffffff; }
.dp-tech-card--typescript .dp-tech-card__icon { color: #3c9eff; }
.dp-tech-card--nodejs .dp-tech-card__icon { color: #7ed957; }
.dp-tech-card--tailwind .dp-tech-card__icon { color: #43d8ff; }
.dp-tech-card--postgresql .dp-tech-card__icon { color: #80bfff; }
.dp-tech-card--docker .dp-tech-card__icon { color: #36a9ff; }
.dp-tech-card--git .dp-tech-card__icon { color: #ff8058; }
.dp-tech-card__icon svg { width: 27px; height: 27px; }
.dp-tech-card__icon { overflow: hidden; }
.dp-tech-card__icon > svg, .dp-tech-card__custom-icon { display: block; width: 27px !important; height: 27px !important; min-width: 27px; min-height: 27px; max-width: 27px !important; max-height: 27px !important; margin: 0; object-fit: contain; object-position: center; }
.dp-tech-card--custom .dp-tech-card__icon { color: inherit; }
.dp-tech-card__name { color: var(--dp-muted-strong); font-size: 11px; font-weight: 720; }

/* Services */
.dp-services { overflow: hidden; }
.dp-services::before {
  content: ""; position: absolute; width: 520px; height: 520px; left: -180px; bottom: -260px; z-index: -1;
  background: radial-gradient(circle, rgba(57,201,255,.11), transparent 68%); filter: blur(8px); pointer-events: none;
}
.dp-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dp-service-card { overflow: hidden; min-height: 100%; transition: transform var(--dp-transition), border-color var(--dp-transition), box-shadow var(--dp-transition); }
.dp-service-card:hover { transform: translateY(-7px); border-color: rgba(57,201,255,.45); box-shadow: 0 28px 62px rgba(0,0,0,.4), 0 0 30px rgba(22,119,255,.12); }
.dp-service-card__visual {
  position: relative; min-height: 176px; display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-bottom: 1px solid var(--dp-border); background:
    linear-gradient(rgba(105,167,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105,167,255,.09) 1px, transparent 1px),
    radial-gradient(circle at 70% 22%, rgba(22,119,255,.28), transparent 42%),
    #08172a;
  background-size: 52px 52px, 52px 52px, auto, auto;
}
.dp-service-card__visual::after { content: ""; position: absolute; inset: auto 8% -55% 8%; height: 150px; border-radius: 50%; background: rgba(57,201,255,.14); filter: blur(38px); }
.dp-service-card__icon {
  position: relative; z-index: 2; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 24px;
  border: 1px solid rgba(74,176,255,.38); background: linear-gradient(145deg, rgba(20,119,255,.3), rgba(5,20,38,.94));
  color: var(--dp-accent-2); font-size: 34px; box-shadow: 0 24px 46px rgba(0,0,0,.35), 0 0 34px rgba(22,119,255,.2);
}
.dp-service-card__icon svg { width: 36px; height: 36px; fill: currentColor; }
.dp-service-card__number { position: absolute; right: 16px; top: 12px; color: rgba(198,220,249,.34); font-size: 38px; font-weight: 900; letter-spacing: -.06em; }
.dp-service-card__category { position: absolute; left: 13px; top: 13px; padding: 5px 9px; border-radius: 999px; background: rgba(2,8,20,.86); border: 1px solid rgba(255,255,255,.16); color: #eaf3ff; font-size: 10px; font-weight: 800; backdrop-filter: blur(9px); }
.dp-service-card__body { padding: 24px; }
.dp-service-card h3 { margin: 0; font-size: 21px; letter-spacing: -.03em; }
.dp-service-card__body > p { min-height: 92px; margin: 12px 0 18px; color: var(--dp-muted); line-height: 1.65; font-size: 14px; }
.dp-service-card__features { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; color: var(--dp-muted-strong); font-size: 13px; font-weight: 700; }
.dp-service-card__features li { display: flex; align-items: center; gap: 9px; }
.dp-service-card__features li::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--dp-accent-2); box-shadow: 0 0 12px rgba(57,201,255,.5); }

/* Projects */
.dp-project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dp-project-card { overflow: hidden; transition: transform var(--dp-transition), border-color var(--dp-transition), box-shadow var(--dp-transition); }
.dp-project-card:hover { transform: translateY(-7px); border-color: rgba(57,201,255,.45); box-shadow: 0 28px 62px rgba(0,0,0,.4), 0 0 30px rgba(22,119,255,.12); }
.dp-project-card__media { position: relative; aspect-ratio: 16/9; overflow: hidden; border-bottom: 1px solid var(--dp-border); background: #081526; }
.dp-project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.2,.75,.2,1); }
.dp-project-card:hover .dp-project-card__media img { transform: scale(1.035); }
.dp-project-card__type { position: absolute; left: 13px; top: 13px; padding: 5px 9px; border-radius: 999px; background: rgba(2,8,20,.86); border: 1px solid rgba(255,255,255,.16); color: #eaf3ff; font-size: 10px; font-weight: 800; backdrop-filter: blur(9px); }
.dp-project-card__body { padding: 22px; }
.dp-project-card h3 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.dp-project-card p { min-height: 76px; margin: 11px 0 16px; color: var(--dp-muted); line-height: 1.65; font-size: 14px; }
.dp-projects-cta { display: flex; justify-content: center; margin-top: clamp(30px, 4vw, 48px); }
.dp-projects-cta .dp-button { width: auto; min-width: 220px; justify-content: center; }
.dp-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.dp-tag { padding: 5px 8px; border: 1px solid rgba(132,177,255,.13); border-radius: 7px; background: rgba(255,255,255,.025); color: #b7c7db; font-size: 10px; font-weight: 700; }

/* Profile, process, metrics */
.dp-profile-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(330px, .9fr); grid-template-areas: "profile process" "profile metrics"; gap: 18px; align-items: stretch; }
.dp-profile-card, .dp-process-card, .dp-metrics-card { padding: 28px; }
.dp-profile-card { grid-area: profile; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(180px, .72fr) minmax(0, 1.28fr); align-items: center; gap: 30px; background: linear-gradient(155deg, rgba(13,38,66,.98), rgba(5,17,31,.96) 62%, rgba(7,30,58,.96)); }
.dp-process-card { grid-area: process; }
.dp-metrics-card { grid-area: metrics; }
.dp-profile-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.035), transparent 42%); }
.dp-profile-card__visual { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.dp-profile-card__visual::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(95,214,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(95,214,255,.1) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to bottom, #000, transparent 72%); }
.dp-profile-card__orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.dp-profile-card__orb--one { width: 220px; height: 220px; right: -92px; top: -96px; background: radial-gradient(circle, rgba(57,201,255,.28), rgba(22,119,255,.08) 54%, transparent 72%); }
.dp-profile-card__orb--two { width: 170px; height: 170px; left: -78px; bottom: -85px; background: radial-gradient(circle, rgba(22,119,255,.24), transparent 72%); }
.dp-profile-card__header, .dp-profile-card__content { position: relative; z-index: 1; }
.dp-profile-card__header { display: grid; grid-template-columns: 1fr; align-content: start; gap: 16px; margin: 0; }
.dp-avatar-frame { width: 94px; aspect-ratio: 1; padding: 4px; border: 1px solid rgba(91,211,255,.5); border-radius: 24px; background: linear-gradient(145deg, rgba(57,201,255,.26), rgba(22,119,255,.08)); box-shadow: 0 18px 38px rgba(0,0,0,.28), 0 0 30px rgba(22,119,255,.16); }
.dp-avatar { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 19px; background: #0b2139; }
.dp-profile-card__identity { display: grid; align-content: center; gap: 7px; }
.dp-profile-card .dp-eyebrow { margin: 0; color: #5fd6ff; }
.dp-profile-role { color: var(--dp-text); font-size: 17px; font-weight: 800; line-height: 1.25; }
.dp-profile-status { display: inline-flex; align-items: center; gap: 8px; color: #b9c9dd; font-size: 11px; font-weight: 700; }
.dp-profile-status > span { width: 8px; height: 8px; border-radius: 50%; background: var(--dp-success); box-shadow: 0 0 0 5px rgba(84,229,165,.09), 0 0 16px rgba(84,229,165,.34); }
.dp-profile-card h2 { max-width: 560px; margin: 0 0 16px; color: var(--dp-text) !important; font-size: clamp(23px, 2vw, 29px); font-weight: 820; letter-spacing: -.035em; line-height: 1.14; }
.dp-profile-card__content > p:not(.dp-profile-location) { margin: 0; color: var(--dp-muted-strong); line-height: 1.72; }
.dp-profile-highlights { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.dp-profile-highlights span { padding: 7px 10px; border: 1px solid rgba(95,214,255,.17); border-radius: 999px; background: rgba(22,119,255,.08); color: #d9e9fb; font-size: 10px; font-weight: 760; }
.dp-profile-location { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: #89a3c0; font-size: 12px; }
.dp-profile-location span { color: #5fd6ff; font-size: 19px; line-height: 1; }
.dp-profile-card .dp-actions { margin-top: 22px; }
.dp-card-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.dp-card-heading__mark { width: 9px; height: 28px; border-radius: 999px; background: linear-gradient(to bottom, var(--dp-accent-2), var(--dp-accent)); box-shadow: 0 0 20px rgba(57,201,255,.22); }
.dp-card-heading h2, .dp-process-card h2, .dp-metrics-card h2 { margin: 0; color: var(--dp-text) !important; font-size: 21px; font-weight: 820; letter-spacing: -.025em; line-height: 1.2; }
.dp-process-card { background: linear-gradient(155deg, rgba(10,29,50,.96), rgba(5,17,31,.96)); }
.dp-process-list { display: grid; gap: 17px; }
.dp-process-item { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.dp-process-item:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: -17px; width: 1px; background: linear-gradient(to bottom, rgba(57,201,255,.28), rgba(57,201,255,.03)); }
.dp-process-item__number { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(57,201,255,.4); border-radius: 50%; background: #07182a; color: #5fd6ff; font-size: 11px; font-weight: 850; box-shadow: 0 0 0 5px rgba(22,119,255,.05); }
.dp-process-item strong { display: block; margin-bottom: 5px; color: var(--dp-text); font-size: 14px; }
.dp-process-item p { margin: 0; color: var(--dp-muted); line-height: 1.55; font-size: 12px; }
.dp-metrics-card { background: linear-gradient(155deg, rgba(10,29,50,.96), rgba(5,17,31,.96)); }
.dp-metric-grid { display: grid; gap: 10px; }
.dp-metric { position: relative; overflow: hidden; padding: 18px; border: 1px solid rgba(132,177,255,.13); border-radius: 13px; background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(22,119,255,.035)); }
.dp-metric::after { content: ""; position: absolute; width: 70px; height: 70px; right: -28px; top: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(57,201,255,.18), transparent 72%); }
.dp-metric__value { position: relative; z-index: 1; display: block; color: var(--dp-text); font-size: 31px; font-weight: 850; letter-spacing: -.045em; }
.dp-metric__label { position: relative; z-index: 1; color: var(--dp-muted-strong); font-size: 12px; line-height: 1.4; }

/* Testimonials */
.dp-testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.dp-testimonial { position: relative; padding: 26px; }
.dp-testimonial::before { content: "“"; position: absolute; right: 22px; top: 12px; color: rgba(57,201,255,.18); font: 800 62px/1 Georgia, serif; }
.dp-testimonial blockquote { position: relative; margin: 0 0 24px; color: var(--dp-muted-strong); line-height: 1.7; font-size: 14px; }
.dp-testimonial__author { display: flex; align-items: center; gap: 12px; }
.dp-testimonial__avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--dp-accent), var(--dp-accent-2)); color: #fff; font-weight: 850; }
.dp-testimonial__author strong { display: block; font-size: 13px; }
.dp-testimonial__author span { color: var(--dp-muted); font-size: 11px; }

/* CTA */
.dp-cta { padding-block: clamp(56px, 7vw, 88px); }
.dp-cta-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 34px; padding: clamp(30px, 5vw, 54px); border-color: rgba(72,157,255,.38); background: linear-gradient(130deg, rgba(10,43,82,.94), rgba(13,28,58,.95) 52%, rgba(16,46,100,.9)); }
.dp-cta-card::before { content: ""; position: absolute; width: 320px; height: 320px; right: -80px; top: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(57,201,255,.28), transparent 68%); }
.dp-cta-card h2 { margin: 0; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.04em; }
.dp-cta-card p { margin: 11px 0 0; color: #c2d1e4; }
.dp-cta-card .dp-actions { position: relative; margin: 0; }

/* Page intro */
.dp-page-intro { padding-block: clamp(86px, 10vw, 140px) clamp(55px, 7vw, 90px); text-align: center; }
.dp-page-intro .dp-title-xl, .dp-page-intro .dp-lead { margin-inline: auto; }
.dp-page-intro .dp-title-xl { max-width: 850px; }
.dp-page-intro .dp-lead { max-width: 720px; }

/* Footer */
.dp-site-footer { border-top: 1px solid rgba(132,177,255,.12); background: rgba(1,6,14,.84); }
.dp-footer__top { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; padding-block: 48px 34px; }
.dp-footer__description { max-width: 520px; margin: 17px 0 0; color: var(--dp-muted); line-height: 1.7; }
.dp-footer__social { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.dp-social-link { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid var(--dp-border); border-radius: 50%; background: rgba(255,255,255,.025); color: #d9e6f5; transition: transform var(--dp-transition), border-color var(--dp-transition), color var(--dp-transition); }
.dp-social-link:hover { transform: translateY(-3px); border-color: rgba(57,201,255,.5); color: #58d4ff; }
.dp-social-link svg { width: 19px; height: 19px; }
.dp-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 20px 28px; border-top: 1px solid rgba(132,177,255,.09); color: var(--dp-muted); font-size: 12px; }
.dp-footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.dp-footer__links a:hover { color: #fff; }

/* Empty/fallback pages */
.dp-content-shell { width: min(860px, calc(100vw - 40px)); margin-inline: auto; padding: 90px 0; }
.dp-content-shell :where(h1,h2,h3,h4) { color: var(--dp-text); }
.dp-content-shell :where(p,li) { color: var(--dp-muted-strong); line-height: 1.75; }


/* Native WordPress content */
.dp-native-header { margin-bottom: 38px; }
.dp-native-title { margin: 0; color: var(--dp-text); font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: -.04em; }
.dp-native-description { margin-top: 16px; color: var(--dp-muted-strong); line-height: 1.7; }
.dp-post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dp-post-card { overflow: hidden; }
.dp-post-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--dp-border); background: var(--dp-surface-2); }
.dp-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dp-transition); }
.dp-post-card:hover .dp-post-card__media img { transform: scale(1.035); }
.dp-post-card__body { padding: 24px; }
.dp-post-card__body h2 { margin: 0; font-size: 25px; line-height: 1.2; }
.dp-post-card__meta, .dp-entry-meta { margin: 0 0 12px; color: var(--dp-accent-2); font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.dp-post-card__excerpt { color: var(--dp-muted-strong); line-height: 1.7; }
.dp-entry { width: min(860px, calc(100vw - 40px)); margin-inline: auto; padding: clamp(70px, 8vw, 110px) 0; }
.dp-entry__header { margin-bottom: 40px; }
.dp-entry__title { margin: 0; color: var(--dp-text); font-size: clamp(38px, 6vw, 68px); line-height: 1.03; letter-spacing: -.045em; }
.dp-entry__media { margin: 0 0 38px; overflow: hidden; border-radius: var(--dp-radius); border: 1px solid var(--dp-border); }
.dp-entry__content { color: var(--dp-muted-strong); font-size: 17px; line-height: 1.8; }
.dp-entry__content :where(h2,h3,h4,h5,h6) { margin: 1.7em 0 .65em; color: var(--dp-text); line-height: 1.2; }
.dp-entry__content a { color: var(--dp-accent-2); text-decoration: underline; text-underline-offset: 3px; }
.dp-entry__content :where(img,video,iframe,table,pre) { max-width: 100%; }
.dp-entry__content table { width: 100%; border-collapse: collapse; }
.dp-entry__content th, .dp-entry__content td { padding: 12px; border: 1px solid var(--dp-border); text-align: left; }
.dp-entry__content blockquote { margin-inline: 0; padding: 20px 24px; border-left: 4px solid var(--dp-accent-2); background: var(--dp-surface); }
.dp-entry__content pre { overflow-x: auto; padding: 20px; border-radius: var(--dp-radius-sm); background: #01050d; }
.dp-pagination .nav-links, .pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.dp-pagination a, .dp-pagination span, .pagination .page-numbers { display: grid; min-width: 44px; min-height: 44px; place-items: center; padding: 8px 12px; border: 1px solid var(--dp-border); border-radius: 10px; background: var(--dp-surface); }
.dp-pagination .current, .pagination .current { border-color: var(--dp-accent-2); color: #fff; }
.dp-search-form { display: flex; gap: 10px; max-width: 620px; }
.dp-field, .dp-search-field {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--dp-border-strong); border-radius: 10px;
  background: rgba(2, 11, 23, .9); color: var(--dp-text);
}
.dp-field::placeholder, .dp-search-field::placeholder { color: #8295af; }
.dp-comments { width: min(860px, calc(100vw - 40px)); margin: 0 auto; padding-bottom: 90px; }
.dp-comment-list { list-style: none; margin: 24px 0; padding: 0; }
.dp-comment-list .comment-body { margin-bottom: 18px; padding: 22px; border: 1px solid var(--dp-border); border-radius: var(--dp-radius); background: var(--dp-surface); }
.dp-comment-list .children { list-style: none; margin-left: 28px; }
.comment-form :where(input[type="text"],input[type="email"],input[type="url"],textarea) { width: 100%; }

/* Accessible contact form */
.dp-contact-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: start; }
.dp-contact-copy { padding: 30px; }
.dp-contact-form { padding: 30px; }
.dp-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dp-form-field { display: grid; gap: 8px; }
.dp-form-field--wide { grid-column: 1 / -1; }
.dp-form-field label { color: var(--dp-text); font-weight: 750; }
.dp-form-field textarea { min-height: 150px; resize: vertical; }
.dp-form-help { color: var(--dp-muted); font-size: 13px; line-height: 1.6; }
.dp-consent, .dp-form-consent { margin: 18px 0; color: var(--dp-muted-strong); font-size: 14px; line-height: 1.55; }
.dp-consent label, .dp-form-consent { display: flex; align-items: flex-start; gap: 10px; }
.dp-consent input, .dp-form-consent input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--dp-accent-button); }
.dp-form-notice, .dp-form-status { margin-bottom: 20px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--dp-border); }
.dp-form-notice--success, .dp-form-status--success { border-color: rgba(84,229,165,.5); background: rgba(84,229,165,.1); color: #bdf8dc; }
.dp-form-notice--error, .dp-form-status--error { border-color: rgba(255,101,132,.55); background: rgba(255,101,132,.1); color: #ffd0da; }
.dp-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }


.dp-contact-form > :first-child { margin-top: 0; }
.dp-contact-form > :last-child { margin-bottom: 0; }
.dp-footer__links { list-style: none; margin: 0; padding: 0; }
.dp-footer__links li { margin: 0; }
.dp-nav__list li { margin: 0; }

/* Focus */
body.devportfolio-theme :where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid #64d8ff; outline-offset: 4px; border-radius: 8px;
}

/* Motion: visible by default, hidden only after JS fully opts in */
.dp-motion-ready .dp-reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms cubic-bezier(.18,.78,.25,1), transform 700ms cubic-bezier(.18,.78,.25,1); }
.dp-motion-ready .dp-reveal--right { transform: translateX(30px); }
.dp-motion-ready .dp-reveal.is-visible { opacity: 1; transform: none; }
.elementor-editor-active .dp-reveal, .elementor-editor-preview .dp-reveal { opacity: 1 !important; transform: none !important; }
.elementor-editor-active .dp-site-header, .elementor-editor-active .dp-header-sticky { position: relative; top: 0; }

@media (max-width: 1080px) {
  :root { --dp-shell: min(100% - 40px, 920px); }
  .dp-header__inner { gap: 18px; }
  .dp-nav__list { gap: 20px; }
  .dp-hero__grid { grid-template-columns: 1fr 420px; gap: 34px; }
  .dp-tech-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .dp-project-grid, .dp-service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dp-service-card:last-child { grid-column: 1 / -1; }
  .dp-project-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: .9fr 1.1fr; }
  .dp-project-card:last-child .dp-project-card__media { aspect-ratio: auto; min-height: 260px; border-bottom: 0; border-right: 1px solid var(--dp-border); }
  .dp-profile-layout { grid-template-columns: 1fr 1fr; grid-template-areas: "profile profile" "process metrics"; }
  .dp-profile-card { grid-template-columns: minmax(180px, .62fr) minmax(0, 1.38fr); }
  .dp-metrics-card { grid-column: auto; }
  .dp-metric-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 820px) {
  :root { --dp-header-h: 70px; --dp-shell: min(100% - 32px, 720px); }
  body.devportfolio-theme.admin-bar { --dp-admin-offset: 46px; }
  .dp-header__inner { grid-template-columns: 1fr auto; }
  .dp-header__cta { display: none; }
  .js .dp-menu-toggle { display: grid; place-items: center; }
  .dp-menu-toggle { position: relative; z-index: 10002; }
  .js .dp-nav {
    position: fixed !important;
    inset: calc(var(--dp-admin-offset, 0px) + var(--dp-header-h)) 0 0 !important;
    z-index: 9998;
    width: 100vw !important;
    max-width: none !important;
    height: calc(100dvh - var(--dp-admin-offset, 0px) - var(--dp-header-h));
    margin: 0 !important;
    padding: clamp(28px, 8vw, 48px) 20px calc(28px + env(safe-area-inset-bottom));
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-top: 1px solid rgba(117,165,235,.16);
    border-radius: 0;
    background:
      radial-gradient(circle at 82% 8%, rgba(22,119,255,.20), transparent 20rem),
      radial-gradient(circle at 15% 88%, rgba(57,201,255,.10), transparent 22rem),
      rgba(2,8,20,.985);
    box-shadow: 0 24px 70px rgba(0,0,0,.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity var(--dp-transition), transform var(--dp-transition), visibility var(--dp-transition);
  }
  .js .dp-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .dp-nav__list { width: min(100%, 520px); display: grid; gap: 10px; margin: 0 auto; }

  .dp-nav__title {
    display: block;
    width: min(100%, 520px);
    margin: 0 auto 10px;
    color: var(--dp-accent-2);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  .dp-nav__link, .dp-nav__list a {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border: 1px solid rgba(117,165,235,.14);
    border-radius: 13px;
    background: rgba(7,24,43,.72);
    color: var(--dp-text);
    font-size: 17px;
    font-weight: 800;
  }
  .dp-nav__link::after, .dp-nav__list a::after { content: "→"; position: static; display: block; width: auto; height: auto; background: none; color: var(--dp-accent-2); opacity: .78; }
  .dp-nav__link:hover, .dp-nav__link:focus-visible, .dp-nav__list a:hover, .dp-nav__list a:focus-visible { border-color: rgba(57,201,255,.42); background: rgba(22,119,255,.14); transform: translateX(3px); }
  body.dp-menu-open { overflow: hidden !important; touch-action: none; }
  .dp-hero { min-height: auto; }
  .dp-hero__grid { grid-template-columns: 1fr; }
  .dp-hero__content { text-align: center; }
  .dp-title-xl, .dp-hero__lead { margin-inline: auto; }
  .dp-actions, .dp-hero__meta { justify-content: center; }
  .dp-hero__visual { min-height: 500px; max-width: 650px; width: 100%; margin-inline: auto; }
  .dp-hero-stage { width: min(100%, 610px); min-height: 500px; }
  .dp-hero-profile-chip { left: 5%; width: min(410px, 76%); }
  .dp-hero__image { width: min(100%, 540px); }
  .dp-float-chip--3 { display: none; }
  .dp-section-heading--row { align-items: start; flex-direction: column; }
  .dp-project-grid, .dp-service-grid { grid-template-columns: 1fr; }
  .dp-service-card:last-child { grid-column: auto; }
  .dp-project-card:last-child { grid-column: auto; display: block; }
  .dp-project-card:last-child .dp-project-card__media { min-height: 0; aspect-ratio: 16/9; border-right: 0; border-bottom: 1px solid var(--dp-border); }
  .dp-project-card p { min-height: auto; }
  .dp-projects-cta .dp-button { width: min(100%, 320px); min-width: 0; }
  .dp-profile-layout { grid-template-columns: 1fr; grid-template-areas: "profile" "process" "metrics"; }
  .dp-profile-card { grid-template-columns: minmax(170px, .55fr) minmax(0, 1.45fr); }
  .dp-metrics-card { grid-column: auto; }
  .dp-testimonial-grid { grid-template-columns: 1fr; }
  .dp-contact-wrap { grid-template-columns: 1fr; }
  .dp-post-grid { grid-template-columns: 1fr; }
  .dp-cta-card { grid-template-columns: 1fr; text-align: center; }
  .dp-cta-card .dp-actions { justify-content: center; }
  .dp-footer__top { grid-template-columns: 1fr; }
  .dp-footer__social { justify-content: flex-start; }
  .no-js .dp-header__inner { grid-template-columns: 1fr; padding-block: 12px; }
  .no-js .dp-menu-toggle { display: none; }
  .no-js .dp-nav {
    position: static;
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
    padding: 0 0 12px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    background: transparent;
    box-shadow: none;
  }
  .no-js .dp-nav__title { margin: 4px 0 10px; }
  .no-js .dp-nav__list { width: 100%; }


}

@media (max-width: 560px) {
  .dp-brand__logo { max-height: 42px; }
  :root { --dp-shell: calc(100% - 24px); }
  .dp-section { padding-block: 68px; }
  .dp-hero { padding-top: 60px; }
  .dp-title-xl { font-size: clamp(40px, 12.5vw, 54px); }
  .dp-title-lg { font-size: 36px; }
  .dp-actions { display: grid; grid-template-columns: 1fr; }
  .dp-button { width: 100%; }
  .dp-hero__visual { min-height: auto; }
  .dp-hero-stage { min-height: auto; width: 100%; padding: 12px 0 0; }
  .dp-hero-stage__art { width: 100%; transform: none; }
  .dp-hero__image { width: min(100%, 390px); max-height: 285px; }
  .dp-hero-profile-chip { position: relative; left: auto; bottom: auto; width: min(100%, 390px); min-height: 0; margin: 8px auto 0; grid-template-columns: 112px minmax(0,1fr); gap: 15px; padding: 11px 16px 11px 11px; border-radius: 22px; }
  .dp-hero-profile-chip__media { width: 112px; border-radius: 17px; }
  .dp-hero-profile-chip__copy span { font-size: 9px; }
  .dp-hero-profile-chip__copy strong { font-size: 24px; }
  .dp-hero-stage--profile-only .dp-hero-profile-chip { grid-template-columns: 132px minmax(0,1fr); }
  .dp-hero-stage--profile-only .dp-hero-profile-chip__media { width: 132px; }
  .dp-float-chip { display: none; }
  .dp-tech-panel { padding: 12px; }
  .dp-tech-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; }
  .dp-tech-card { min-height: 67px; }
  .dp-tech-card__name { font-size: 8px; }
  .dp-project-card__body, .dp-profile-card, .dp-process-card, .dp-metrics-card, .dp-testimonial { padding: 21px; }
  .dp-profile-card { grid-template-columns: 1fr; gap: 22px; }
  .dp-profile-card__header { grid-template-columns: 92px minmax(0,1fr); align-items: center; gap: 15px; }
  .dp-avatar-frame { width: 92px; max-width: none; aspect-ratio: 1; border-radius: 20px; }
  .dp-avatar { border-radius: 16px; }
  .dp-metric-grid { grid-template-columns: 1fr; }
  .dp-cta-card { padding: 28px 20px; }
  .dp-form-grid { grid-template-columns: 1fr; }
  .dp-form-field--wide { grid-column: auto; }
  .dp-search-form { flex-direction: column; }
  .dp-footer__bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .dp-reveal { opacity: 1 !important; transform: none !important; }
}


/* =========================================================
   RC.10 — EDITORIAL PROFILE + FUNCTIONAL CONTACT FORM
   ========================================================= */
.dp-profile-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  grid-template-areas: "profile profile" "process metrics";
  gap: 20px;
}
.dp-profile-card {
  grid-area: profile;
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  min-height: 440px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(11,32,55,.98), rgba(4,15,28,.98));
}
.dp-profile-card::after { display: none; }
.dp-profile-card__media {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-right: 1px solid rgba(95,214,255,.14);
  background: linear-gradient(160deg, #0e2b4b, #061322);
}
.dp-profile-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(1,7,16,.96) 0, rgba(1,7,16,.18) 48%, transparent 72%);
  pointer-events: none;
}
.dp-profile-photo { width: 100%; height: 100%; min-height: 440px; object-fit: cover; display: block; }
.dp-profile-photo--top { object-position: center top; }
.dp-profile-photo--center { object-position: center; }
.dp-profile-photo--bottom { object-position: center bottom; }
.dp-profile-card__media--fallback { display: grid; place-items: center; }
.dp-profile-card__media--fallback .dp-profile-photo { object-fit: contain; padding: 76px; background: radial-gradient(circle at 50% 36%, rgba(57,201,255,.18), transparent 52%); }
.dp-profile-card__media-overlay {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  display: grid;
  gap: 8px;
  padding: 28px;
}
.dp-profile-card__media-overlay strong { color: #fff; font-size: clamp(20px, 2vw, 27px); letter-spacing: -.03em; }
.dp-profile-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(34px, 5vw, 66px);
}
.dp-profile-card__content::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -90px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,119,255,.18), transparent 70%);
  pointer-events: none;
}
.dp-profile-card__content > * { position: relative; z-index: 1; }
.dp-profile-card .dp-eyebrow { margin-bottom: 18px; }
.dp-profile-card h2 { max-width: 700px; margin-bottom: 20px; font-size: clamp(30px, 3.25vw, 48px); line-height: 1.07; }
.dp-profile-description { max-width: 690px; margin: 0; color: var(--dp-muted-strong); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.75; }
.dp-profile-highlights { margin-top: 26px; }
.dp-profile-highlights span { padding: 9px 13px; font-size: 12px; }
.dp-profile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 24px; }
.dp-profile-location, .dp-profile-meta__status { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #a8bad1; font-size: 13px; }
.dp-profile-meta__status > span { width: 8px; height: 8px; border-radius: 50%; background: var(--dp-success); box-shadow: 0 0 12px rgba(84,229,165,.5); }
.dp-profile-card .dp-actions { margin-top: 28px; }
.dp-process-card, .dp-metrics-card { padding: 30px; }
.dp-metric-grid { grid-template-columns: 1fr; }

.dp-contact-wrap { grid-template-columns: minmax(280px,.72fr) minmax(0,1.28fr); gap: 22px; }
.dp-contact-copy {
  position: sticky;
  top: calc(var(--dp-header-h) + 28px);
  overflow: hidden;
  padding: clamp(30px,4vw,46px);
  background: linear-gradient(155deg, rgba(12,40,72,.98), rgba(5,18,34,.98));
}
.dp-contact-copy::after { content:""; position:absolute; width:240px; height:240px; right:-100px; bottom:-120px; border-radius:50%; background:radial-gradient(circle,rgba(57,201,255,.2),transparent 68%); }
.dp-contact-copy > * { position: relative; z-index: 1; }
.dp-contact-points { display: grid; gap: 14px; margin-top: 28px; color: var(--dp-muted-strong); font-size: 14px; }
.dp-contact-points span { display: flex; align-items: center; gap: 11px; }
.dp-contact-points i { width: 9px; height: 9px; border-radius: 50%; background: var(--dp-success); box-shadow: 0 0 14px rgba(84,229,165,.45); }
.dp-contact-form { padding: clamp(28px,4vw,44px); background: linear-gradient(155deg, rgba(9,27,48,.98), rgba(4,15,28,.98)); }
.dp-contact-form .dp-field { min-height: 52px; border-color: rgba(132,177,255,.2); background: rgba(1,8,19,.64); }
/* Keep typed values readable without changing placeholder styling. */
body.devportfolio-theme .dp-contact-form :where(
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="search"]
).dp-field {
  color: #f5f8ff !important;
  -webkit-text-fill-color: #f5f8ff;
  caret-color: #66d7ff;
  opacity: 1;
}
body.devportfolio-theme .dp-contact-form input.dp-field:-webkit-autofill,
body.devportfolio-theme .dp-contact-form input.dp-field:-webkit-autofill:hover,
body.devportfolio-theme .dp-contact-form input.dp-field:-webkit-autofill:focus {
  -webkit-text-fill-color: #f5f8ff;
  caret-color: #66d7ff;
  box-shadow: 0 0 0 1000px #07182b inset;
  transition: background-color 9999s ease-out 0s;
}

.dp-contact-form textarea.dp-field { min-height: 172px; }
.dp-contact-form .dp-field:focus { border-color: var(--dp-accent-2); box-shadow: 0 0 0 4px rgba(57,201,255,.1); }
.dp-contact-submit { width: 100%; justify-content: center; min-height: 54px; }

@media (max-width: 980px) {
  .dp-profile-layout { grid-template-columns: 1fr 1fr; grid-template-areas: "profile profile" "process metrics"; }
  .dp-profile-card { grid-template-columns: minmax(260px,.72fr) minmax(0,1.28fr); }
  .dp-profile-card__media, .dp-profile-photo { min-height: 400px; }
  .dp-contact-wrap { grid-template-columns: 1fr; }
  .dp-contact-copy { position: relative; top: auto; }
}
@media (max-width: 720px) {
  .dp-profile-layout { grid-template-columns: 1fr; grid-template-areas: "profile" "process" "metrics"; }
  .dp-profile-card { grid-template-columns: 1fr; }
  .dp-profile-card__media { min-height: 390px; border-right: 0; border-bottom: 1px solid rgba(95,214,255,.14); }
  .dp-profile-photo { min-height: 390px; }
  .dp-profile-card__content { padding: 28px 22px 32px; }
  .dp-profile-card h2 { font-size: clamp(28px, 9vw, 38px); }
  .dp-profile-card__media-overlay { padding: 22px; }
  .dp-profile-meta { display: grid; gap: 10px; }
}


/* =========================================================
   RC.12 — CENTERED FLEXIBLE TECHNOLOGY GRID
   ========================================================= */
.dp-tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
}
.dp-tech-card {
  flex: 0 1 136px;
  width: 136px;
  min-width: 112px;
  max-width: 150px;
}

@media (max-width: 1024px) {
  .dp-tech-card { flex-basis: 130px; }
}

@media (max-width: 820px) {
  .dp-tech-grid { gap: 8px; }
  .dp-tech-card {
    flex: 0 1 122px;
    width: 122px;
    min-width: 104px;
    max-width: 145px;
  }
}

@media (max-width: 480px) {
  .dp-tech-card {
    flex: 0 1 calc(50% - 5px);
    width: auto;
    min-width: 0;
    max-width: 160px;
  }
}


/* =========================================================
   RC.10 — CUSTOM TECHNOLOGY ICONS + ROBUST HERO PORTRAIT
   ========================================================= */
.dp-tech-card__custom-icon { pointer-events: none; }
