:root {
  --bg: #07090d;
  --surface: #0c1018;
  --surface-alt: #0f1521;
  --accent: #3db8ff;
  --accent-soft: rgba(61, 184, 255, 0.16);
  --secondary: #00e5c8;
  --text: #ddeeff;
  --muted: #9db5cf;
  --line: rgba(144, 176, 214, 0.22);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 24px 64px rgba(0, 0, 0, 0.38);
  --shadow-glow: 0 0 0 1px rgba(61, 184, 255, 0.22), 0 10px 36px rgba(61, 184, 255, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 2% -8%, rgba(61, 184, 255, 0.11), transparent 30%),
    radial-gradient(circle at 97% -6%, rgba(0, 229, 200, 0.08), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
h4 {
  color: #f4fbff;
  line-height: 1.18;
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Syne", "Inter", sans-serif;
}

p {
  margin: 0;
  color: var(--muted);
}

.skip-link {
  left: 12px;
  position: absolute;
  top: -44px;
  z-index: 999;
  background: var(--accent);
  color: #03121f;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

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

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

.ambient-layer {
  inset: 0;
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

.ambient-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(64px);
  opacity: 0.6;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.orb-a {
  width: 320px;
  height: 320px;
  left: -120px;
  top: 18%;
  background: rgba(61, 184, 255, 0.2);
}

.orb-b {
  width: 280px;
  height: 280px;
  right: -80px;
  top: 58%;
  background: rgba(0, 229, 200, 0.15);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(129, 161, 201, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 161, 201, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 84%);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  border-bottom: 1px solid rgba(95, 127, 171, 0.22);
  background: rgba(7, 9, 13, 0.74);
  backdrop-filter: blur(12px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 18px;
}

.brand-wrap {
  min-width: 0;
}

.site-brand {
  text-decoration: none;
  color: #f4fbff;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.02rem;
}

.site-title {
  margin-top: 4px;
  font-size: 0.73rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #79a3c8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 560px;
}

.site-nav ul,
.mobile-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav ul {
  display: flex;
  gap: 20px;
}

.site-nav a,
.mobile-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  color: #c2dbf5;
  transition: color 0.25s ease;
  position: relative;
}

.site-nav a::after,
.mobile-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

.site-nav a:hover,
.mobile-nav a:hover {
  color: var(--accent);
}

.site-nav a:hover::after,
.mobile-nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  appearance: none;
  border: 1px solid rgba(138, 168, 206, 0.35);
  border-radius: 10px;
  color: #d5e9ff;
  background: rgba(11, 16, 25, 0.86);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 12px;
  display: none;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(95, 127, 171, 0.24);
  background: rgba(10, 14, 22, 0.96);
  padding: 8px 22px 16px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

main {
  padding-top: 92px;
}

.section {
  padding: 34px 0;
}

.section-last {
  padding-bottom: 96px;
}

.section-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(11, 15, 23, 0.96), rgba(7, 10, 16, 0.92));
  padding: 36px;
  box-shadow: var(--shadow-soft);
}

.section-head {
  margin-bottom: 24px;
}

.split-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.section-kicker {
  display: inline-flex;
  border: 1px solid rgba(61, 184, 255, 0.42);
  border-radius: 999px;
  background: rgba(61, 184, 255, 0.12);
  color: #8fd4ff;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.67rem;
  font-weight: 700;
  padding: 7px 12px;
  margin-bottom: 14px;
}

.section-head h1,
.section-head h2 {
  font-size: clamp(2rem, 2.6vw, 3rem);
  margin-bottom: 12px;
}

.hero-card {
  min-height: min(88vh, 760px);
  border: 1px solid rgba(87, 121, 167, 0.28);
  border-radius: var(--radius-xl);
  background: linear-gradient(150deg, rgba(10, 14, 24, 0.92), rgba(6, 9, 14, 0.9));
  padding: clamp(30px, 4.5vw, 56px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.hero-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  inset: -30% -10%;
  background: radial-gradient(circle at 24% 30%, rgba(61, 184, 255, 0.32), transparent 35%),
    radial-gradient(circle at 72% 62%, rgba(0, 229, 200, 0.19), transparent 33%),
    linear-gradient(130deg, rgba(15, 25, 39, 0.86), rgba(8, 11, 17, 0.65));
  filter: saturate(112%);
  animation: gradientShift 9s ease-in-out infinite alternate;
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(132, 177, 225, 0.08) 0.8px, transparent 0.8px);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
  opacity: 0.33;
}

.hero-card h1,
.hero-card p,
.hero-actions {
  position: relative;
  z-index: 1;
}

.hero-card h1 {
  font-size: clamp(2.2rem, 5.1vw, 4.4rem);
  max-width: 900px;
}

.hero-copy {
  margin-top: 18px;
  max-width: 720px;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

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

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, color 0.24s ease;
  padding: 12px 20px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

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

.btn-primary {
  background: linear-gradient(135deg, #43c2ff, #19a9ff);
  color: #041422;
  box-shadow: 0 10px 28px rgba(61, 184, 255, 0.26);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px rgba(61, 184, 255, 0.34);
}

.btn-secondary {
  background: rgba(9, 14, 22, 0.55);
  border-color: rgba(141, 172, 210, 0.34);
  color: #d9eafe;
}

.btn-secondary:hover {
  border-color: rgba(61, 184, 255, 0.65);
  color: #9fdcff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.about-copy p {
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-media,
.media-placeholder {
  border-radius: var(--radius-lg);
  min-height: 300px;
  height: 100%;
}

.about-media img {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(132, 162, 203, 0.28);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-placeholder {
  border: 1px dashed rgba(130, 164, 207, 0.4);
  background: linear-gradient(140deg, rgba(18, 31, 46, 0.6), rgba(11, 16, 23, 0.72));
  display: grid;
  place-items: center;
  color: #7ca7d3;
  text-align: center;
  padding: 20px;
}

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

.skills-card {
  border: 1px solid rgba(130, 161, 203, 0.24);
  border-radius: var(--radius-lg);
  background: rgba(8, 12, 19, 0.72);
  padding: 20px;
}

.skills-card h3 {
  margin-bottom: 12px;
  font-size: 1.04rem;
}

.skills-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skills-card li {
  border: 1px solid rgba(120, 151, 192, 0.26);
  border-radius: 999px;
  padding: 8px 12px;
  color: #bad2ec;
  font-size: 0.87rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  margin: 0;
  border: 1px solid rgba(126, 159, 203, 0.24);
  border-radius: var(--radius-lg);
  background: rgba(9, 13, 20, 0.83);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 184, 255, 0.52);
  box-shadow: var(--shadow-glow);
}

.project-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid rgba(109, 143, 187, 0.28);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease;
}

.project-card:hover .project-media img {
  transform: scale(1.05);
}

.project-media-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #8eb4dc;
  background: linear-gradient(135deg, rgba(61, 184, 255, 0.2), rgba(0, 229, 200, 0.1));
}

.project-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.project-body h3 {
  font-size: 1.07rem;
}

.project-body p {
  font-size: 0.92rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.project-tags span {
  border: 1px solid rgba(61, 184, 255, 0.4);
  color: #96d9ff;
  background: rgba(61, 184, 255, 0.12);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
}

.project-actions {
  margin-top: auto;
}

.workflow-flow {
  font-family: "Space Grotesk", "Syne", sans-serif;
  letter-spacing: 0.03em;
  color: #b7d5f2;
}

.workflow-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workflow-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(132, 162, 203, 0.26);
  background: rgba(8, 12, 20, 0.78);
  padding: 18px;
  position: relative;
}

.workflow-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  width: 20px;
  border-top: 1px dashed rgba(71, 171, 236, 0.54);
}

.workflow-step-number {
  color: #8fcbf2;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.66rem;
  margin-bottom: 8px;
}

.workflow-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.workflow-card p:last-child {
  font-size: 0.88rem;
}

.statement-shell {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(118, 154, 195, 0.26);
  padding: clamp(30px, 4vw, 52px);
  background: linear-gradient(120deg, rgba(8, 14, 24, 0.94), rgba(4, 8, 13, 0.9));
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.statement-copy {
  max-width: 900px;
  margin: 8px auto 0;
  font-size: clamp(1.5rem, 3.4vw, 2.7rem);
  font-family: "Syne", "Space Grotesk", sans-serif;
  color: #f3fbff;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(132, 162, 203, 0.24);
  background: rgba(8, 12, 19, 0.74);
  padding: 22px;
}

.metric-value {
  font-family: "Space Grotesk", "Syne", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  color: #e9f8ff;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.9rem;
  color: #afc8e2;
}

.ai-tools-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
}

.ai-endpoints {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124, 156, 198, 0.28);
  background: rgba(8, 12, 20, 0.78);
  padding: 20px;
}

.endpoint-title {
  margin-bottom: 12px;
  color: #d8ecff;
  font-weight: 600;
}

.ai-endpoints ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-endpoints li {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ai-endpoints span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #90b8dd;
}

.ai-endpoints code {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 10px;
  border: 1px solid rgba(129, 163, 206, 0.28);
  background: rgba(4, 8, 14, 0.72);
  color: #cce7ff;
  font-size: 0.77rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  padding: 8px 10px;
}

.ai-demo {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124, 156, 198, 0.26);
  overflow: hidden;
  min-height: 320px;
}

.ai-demo iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  background: #03060a;
}

.contact-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-form-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(123, 158, 205, 0.26);
  background: rgba(6, 10, 16, 0.75);
  padding: 18px;
}

.contact-form-wrap form {
  display: grid;
  gap: 12px;
}

.contact-form-wrap input,
.contact-form-wrap textarea,
.contact-form-wrap select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(127, 161, 208, 0.32);
  background: rgba(9, 13, 19, 0.9);
  color: #deefff;
  padding: 11px 12px;
  font: inherit;
}

.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus,
.contact-form-wrap select:focus {
  outline: none;
  border-color: rgba(61, 184, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(61, 184, 255, 0.18);
}

.contact-form-wrap button,
.contact-form-wrap input[type="submit"] {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #43c2ff, #19a9ff);
  color: #031420;
  font-weight: 700;
  padding: 11px 18px;
  cursor: pointer;
}

.chatbot-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: min(340px, calc(100% - 28px));
}

.chatbot-toggle {
  width: 100%;
  border: 1px solid rgba(127, 162, 208, 0.35);
  border-radius: 999px;
  background: rgba(9, 14, 22, 0.9);
  color: #dff1ff;
  font-weight: 600;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.chatbot-panel {
  margin-top: 8px;
  border-radius: 18px;
  border: 1px solid rgba(123, 160, 207, 0.3);
  background: rgba(7, 11, 17, 0.94);
  padding: 14px;
}

.chatbot-heading {
  font-weight: 600;
  margin-bottom: 4px;
  color: #d8eeff;
}

.site-footer {
  border-top: 1px solid rgba(102, 138, 184, 0.24);
  background: rgba(8, 12, 18, 0.84);
  margin-top: 34px;
}

.site-footer-inner {
  min-height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #9ab9d9;
  font-size: 0.83rem;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}

.content-card {
  border: 1px solid rgba(128, 163, 206, 0.28);
  border-radius: var(--radius-lg);
  background: rgba(8, 12, 19, 0.76);
  padding: 18px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.entry-content {
  margin-top: 12px;
}

.pagination-wrap {
  margin-top: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@keyframes gradientShift {
  0% {
    transform: translate3d(-2%, -1.5%, 0) scale(1);
  }

  50% {
    transform: translate3d(1.5%, 2.2%, 0) scale(1.05);
  }

  100% {
    transform: translate3d(3%, -2.5%, 0) scale(1.02);
  }
}

@media (max-width: 1099px) {
  .site-title {
    display: none;
  }

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

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

  .workflow-card:not(:last-child)::after {
    display: none;
  }

  .ai-tools-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
  }

  .about-grid,
  .skills-grid,
  .metrics-grid,
  .projects-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .section-shell,
  .hero-card,
  .statement-shell {
    padding: 24px;
    border-radius: 22px;
  }

  .hero-card {
    min-height: auto;
  }

  .section {
    padding: 24px 0;
  }

  main {
    padding-top: 84px;
  }

  .chatbot-dock {
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
  }
}

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

  .reveal,
  .ambient-orb,
  .hero-gradient,
  .project-card,
  .btn {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }

  .reveal {
    opacity: 1;
  }
}
