:root {
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #f8fafc;
  --paper: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --accent-soft: #ccfbf1;
  --nav: #111827;
  --nav-soft: #1f2937;
  --gold: #f59e0b;
  --rose: #e11d48;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 48px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.16);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(15, 118, 110, 0.12), transparent 30rem),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

a {
  color: inherit;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: -44px;
  left: 16px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  top: 16px;
}

.site-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  min-height: 100vh;
}

.site-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 28px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, var(--nav), #0b1120);
  color: white;
  box-shadow: 16px 0 50px rgba(15, 23, 42, 0.16);
}

.mobile-header {
  display: none;
}

.brand {
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  font-size: 1.16rem;
}

.sidebar-brand::before,
.mark::before {
  content: "A";
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--accent);
  color: white;
  font-size: 0.95rem;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.28);
}

.sidebar-caption {
  margin: 4px 0 26px;
  color: #94a3b8;
  font-size: 0.84rem;
  line-height: 1.5;
}

.nav-menu {
  display: grid;
  gap: 7px;
}

.nav-menu a,
.dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 12px;
  background: transparent;
  color: #dbeafe;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus,
.dropdown-toggle:hover,
.dropdown-toggle:focus,
.dropdown-toggle[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  transform: translateX(2px);
}

.dropdown-toggle::after {
  content: "+";
  color: #94a3b8;
  font-size: 1.1rem;
}

.dropdown-toggle[aria-expanded="true"]::after {
  content: "-";
}

.dropdown-menu {
  display: grid;
  max-height: 0;
  margin-left: 10px;
  overflow: hidden;
  opacity: 0;
  transition: max-height 220ms ease, opacity 220ms ease, padding 220ms ease;
}

.nav-dropdown.open .dropdown-menu {
  max-height: 180px;
  padding: 8px 0 4px;
  opacity: 1;
}

.dropdown-menu a {
  min-height: 38px;
  padding-left: 16px;
  color: #b6c3d6;
  font-size: 0.92rem;
}

.admin-link {
  margin-top: 14px;
  background: var(--accent) !important;
  color: white !important;
  box-shadow: 0 16px 30px rgba(15, 118, 110, 0.24);
}

.site-main {
  min-width: 0;
  overflow-x: hidden;
}

.hero,
.section,
.contact-section,
.footer {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding-right: clamp(20px, 4vw, 56px);
  padding-left: clamp(20px, 4vw, 56px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.78fr);
  gap: clamp(26px, 5vw, 56px);
  align-items: center;
  min-height: 100vh;
  padding-top: 54px;
  padding-bottom: 54px;
}

.reveal-card {
  position: relative;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: 0;
  color: var(--ink);
}

.page-title {
  max-width: 820px;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.98;
}

.section-heading h3,
.section-copy h3,
.contact-section h3 {
  max-width: 760px;
  font-size: clamp(1.65rem, 3.1vw, 2.8rem);
  line-height: 1.08;
}

h4 {
  font-size: 1.05rem;
  line-height: 1.25;
}

.hero-summary,
.lede,
.section p,
.contact-section p,
.profile-block p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-summary {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: 1.1rem;
}

.hero-actions,
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 18px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease, border-color 170ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button.primary {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), #0d9488);
  color: white;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.84);
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.code-card,
.profile-block,
.service-card,
.project-card,
.testimonial-card,
.contact-form,
.timeline-item,
.stat {
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover,
.project-card:hover,
.testimonial-card:hover,
.profile-block:hover,
.stat:hover {
  border-color: rgba(15, 118, 110, 0.24);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.code-card {
  padding: 24px;
  background: linear-gradient(145deg, #111827, #172033);
  color: #e5e7eb;
  box-shadow: var(--shadow-lg);
}

.dot-row {
  display: flex;
  gap: 7px;
  margin-bottom: 22px;
}

.dot-row i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
}

.dot-row i:nth-child(2) {
  background: var(--rose);
}

.dot-row i:nth-child(3) {
  background: #22c55e;
}

.terminal-line {
  margin: 12px 0;
  color: #c7d2fe;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat {
  min-height: 112px;
  padding: 18px;
}

.stat strong {
  display: block;
  color: var(--ink);
  font-size: 1.55rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section,
.contact-section {
  padding-top: clamp(58px, 8vw, 96px);
  padding-bottom: clamp(58px, 8vw, 96px);
}

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

.card-grid {
  display: grid;
  gap: 18px;
}

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

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

.service-card,
.project-card,
.testimonial-card {
  padding: 24px;
}

.service-card h4,
.project-card h4,
.testimonial-card h4,
.timeline-item h4 {
  margin-bottom: 10px;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 900;
}

.project-image {
  display: grid;
  place-items: center;
  min-height: 190px;
  margin: -24px -24px 22px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.18), rgba(245, 158, 11, 0.22));
  color: var(--accent-strong);
  font-weight: 900;
}

.project-image.has-image {
  background-position: center;
  background-size: cover;
  color: transparent;
}

.tag-row,
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.tag,
.skill {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.split,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 52px);
  align-items: start;
}

.section-copy p:last-child {
  margin-bottom: 0;
}

.profile-block {
  padding: 24px;
}

.profile-image {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #111827, var(--accent));
  color: white;
  font-size: 4rem;
  font-weight: 900;
}

.profile-image.has-image {
  background-position: center;
  background-size: cover;
  color: transparent;
}

.timeline-stack {
  display: grid;
  gap: 18px;
}

.timeline-group {
  display: grid;
  gap: 10px;
}

.timeline-item {
  margin: 0;
  padding: 18px;
  box-shadow: none;
}

.timeline-item + .timeline-item {
  margin-top: 10px;
}

.timeline-item span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 900;
}

.contact-section {
  position: relative;
  width: min(100%, 1180px);
  max-width: 1180px;
  margin: clamp(28px, 4vw, 56px) auto;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0f172a, #111827 56%, #0f3f3b);
  color: white;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.contact-section h3 {
  color: white;
}

.contact-section .eyebrow,
.contact-section .lede,
.contact-section p {
  color: #cbd5e1;
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-details a,
.contact-details span,
.socials a {
  color: white;
}

.socials a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  text-decoration: none;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  color: var(--ink);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  background: white;
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

textarea {
  resize: vertical;
}

.hidden-field {
  position: absolute;
  left: -10000px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--accent-strong);
  font-weight: 900;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 32px;
  padding-bottom: 32px;
  color: var(--muted);
}

.footer a {
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 1080px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 0 18px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(16px);
  }

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

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0 12px;
    background: white;
    color: var(--ink);
    cursor: pointer;
    font-weight: 900;
    box-shadow: var(--shadow-sm);
  }

  .site-sidebar {
    position: fixed;
    top: 76px;
    right: 16px;
    left: 16px;
    z-index: 35;
    display: none;
    height: auto;
    max-height: calc(100vh - 92px);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    overflow: auto;
    box-shadow: var(--shadow-lg);
  }

  .site-sidebar.open {
    display: block;
    animation: menuIn 180ms ease both;
  }

  .sidebar-brand,
  .sidebar-caption {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  }

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 880px) {
  .hero,
  .split,
  .contact-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-grid.three,
  .card-grid.two,
  .stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-title {
    font-size: 2.35rem;
  }

  .section-heading h3,
  .section-copy h3,
  .contact-section h3 {
    font-size: 1.7rem;
  }

  .hero-actions,
  .footer {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}
/* Brand assets */
.sidebar-brand::before,
.mark::before {
  content: none;
  display: none;
}

.brand-logo {
  display: block;
  width: min(210px, 100%);
  height: auto;
  object-fit: contain;
}

.mobile-header .brand-logo {
  width: min(180px, 58vw);
}

.site-sidebar .brand-logo {
  width: 220px;
  max-width: 100%;
}

.recaptcha-box {
  display: flex;
  align-items: center;
  min-height: 78px;
  overflow-x: auto;
}

.recaptcha-box[hidden] {
  display: none;
}

.contact-section * {
  min-width: 0;
}
