:root {
  --bg: #0a0b10;
  --bg-soft: #0f131b;
  --card: rgba(22, 27, 34, 0.7);
  --card-solid: #161b22;
  --text: #e7eef7;
  --muted: #9cadc4;
  --cyan: #00f2ff;
  --cyan-soft: rgba(0, 242, 255, 0.25);
  --line: rgba(0, 242, 255, 0.14);
  --radius: 16px;
  --container: 1200px;
  --nav-height: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(420px at var(--mx, 50%) var(--my, 50%), rgba(0, 242, 255, 0.14), transparent 60%),
    radial-gradient(900px 600px at 90% 8%, rgba(0, 242, 255, 0.08), transparent 60%),
    radial-gradient(700px 480px at 15% 95%, rgba(0, 98, 255, 0.1), transparent 60%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 242, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 255, 0.02) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
  z-index: -3;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

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

.section-pad { padding: 84px 0; }
.section-pad--tight { padding-top: 48px; }

.premium-glass {
  background: rgba(22, 27, 34, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 242, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.premium-glass:hover {
  border: 1px solid rgba(0, 242, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

.text-glow {
  text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: all 0.25s ease;
}

.header.scrolled {
  background: rgba(10, 11, 16, 0.84);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: var(--nav-height);
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(0, 242, 255, 0.12);
  border: 1px solid rgba(0, 242, 255, 0.25);
  color: var(--cyan);
}
.brand-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: #c9d8eb;
}

.nav-menu { display: flex; gap: 0.2rem; align-items: center; }
.nav-link {
  font-size: 0.92rem;
  color: #c4d1e3;
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  transition: 0.25s ease;
}
.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
  background: rgba(0, 242, 255, 0.08);
}
.nav-cta {
  margin-left: 0.3rem;
  background: rgba(0, 242, 255, 0.13);
  border: 1px solid rgba(0, 242, 255, 0.4);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 242, 255, 0.15);
}

.nav-toggle { display: none; width: 2.25rem; height: 2.25rem; }
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  margin: 5px auto;
  background: var(--cyan);
  transition: 0.25s ease;
}

/* Hero */
.hero {
  padding-top: calc(var(--nav-height) + 28px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.2rem;
  align-items: center;
}

.eyebrow {
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.hero-copy h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 6vw, 3.75rem);
  line-height: 1.06;
  margin-bottom: 1.05rem;
}
.hero-copy h1 span {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(0, 242, 255, 0.38);
}

.hero-subtext {
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 1.45rem;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.hero-connect {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-block;
}

.connect-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.connect-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.connect-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.connect-icon svg {
  width: 20px;
  height: 20px;
  color: var(--cyan);
}

.connect-icon:hover {
  color: var(--cyan);
  transform: translateY(-2px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.74rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: 0.25s ease;
}

.btn-primary {
  color: #041317;
  background: linear-gradient(135deg, #00f2ff, #69f6ff);
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.28);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(0, 242, 255, 0.45);
}

.btn-secondary {
  color: #d6e2ef;
  border-color: var(--line);
  background: rgba(22, 27, 34, 0.55);
}
.btn-secondary:hover {
  color: var(--cyan);
  border-color: rgba(0, 242, 255, 0.45);
}

.btn-full { width: 100%; }

.quick-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.quick-badges li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.33rem 0.75rem;
  font-size: 0.82rem;
  color: #b5c7dd;
  background: rgba(22, 27, 34, 0.58);
}

.photo-shell {
  max-width: 390px;
  margin-inline: auto;
  padding: 12px;
  border-radius: 24px;
  box-shadow: 0 0 45px rgba(0, 242, 255, 0.18);
}
.photo-shell--profile {
  position: relative;
  overflow: hidden;
}
.photo-shell--profile::before {
  content: '';
  position: absolute;
  inset: -18%;
  background: radial-gradient(circle, rgba(0, 242, 255, 0.28) 0%, rgba(0, 242, 255, 0) 68%);
  z-index: 0;
}
.hero-photo {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(0, 242, 255, 0.2);
}
.hero-photo--ai {
  aspect-ratio: 4 / 5;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 72%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 72%, rgba(0,0,0,0) 100%);
}

/* Sections */
.section-head {
  margin-bottom: 1.4rem;
}
.section-head h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.65rem, 4.5vw, 2.5rem);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.service-card {
  padding: 1.35rem;
}
.service-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 0.6rem;
  font-size: 1.12rem;
}
.service-card p {
  color: var(--muted);
  margin-bottom: 0.72rem;
}
.service-card ul {
  display: grid;
  gap: 0.42rem;
}
.service-card li {
  color: #b9c9df;
  font-size: 0.92rem;
  position: relative;
  padding-left: 1rem;
}
.service-card li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 242, 255, 0.7);
  position: absolute;
  left: 0;
  top: 0.58rem;
}

/* Tech stack logos */
.tech-logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  padding: 1.2rem 0;
}
.tech-logo {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(0, 242, 255, 0.12);
  background: rgba(22, 27, 34, 0.55);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.tech-logo svg {
  width: 42px;
  height: 42px;
  object-fit: contain;
  opacity: 0.95;
  fill: #e2e8f0; /* Changed from img */
}
.tech-logo:hover {
  transform: scale(1.1);
  border-color: rgba(0, 242, 255, 0.55);
  box-shadow: 0 0 22px rgba(0, 242, 255, 0.26);
}

/* Workflow (horizontal style from design reference) */
.workflow-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}
.workflow-connector {
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.75), transparent);
  box-shadow: 0 0 14px rgba(0, 242, 255, 0.35);
}
.workflow-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
  padding: 1rem;
}
.workflow-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  border: 1px solid rgba(0, 242, 255, 0.35);
  background: rgba(0, 242, 255, 0.08);
  box-shadow: 0 0 18px rgba(0, 242, 255, 0.2);
}
.workflow-icon-wrap svg {
  width: 28px;
  height: 28px;
}
.workflow-step h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}
.workflow-step p {
  color: #9fb5cc;
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 220px;
}

.case-grid {
  display: grid;
  gap: 1.1rem;
}
.case-card {
  padding: 1.5rem;
}
.case-topline {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}
.chip {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #041317;
  font-weight: 700;
  background: var(--cyan);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
}
.chip-muted {
  color: #a9bed6;
  background: rgba(0, 242, 255, 0.08);
  border: 1px solid var(--line);
}
.case-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.24rem, 2.8vw, 2rem);
  margin-bottom: 0.8rem;
}
.case-card p {
  color: var(--muted);
}
.case-image-wrap {
  margin-bottom: 0.8rem;
  border-radius: 12px;
  overflow: hidden;
}
.case-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.28s ease, transform 0.28s ease;
}
.case-card:hover .case-image {
  filter: grayscale(0%);
  transform: scale(1.02);
}
.case-metrics {
  margin: 1rem 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.case-metrics div {
  padding: 0.9rem 0.7rem;
  text-align: center;
  border-right: 1px solid var(--line);
  background: rgba(10, 15, 24, 0.6);
}
.case-metrics div:last-child { border-right: 0; }
.case-metrics strong {
  display: block;
  color: var(--cyan);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
}
.case-metrics span {
  color: #a8bfd7;
  font-size: 0.83rem;
}
.case-list {
  margin: 1rem 0 0.8rem;
  display: grid;
  gap: 0.52rem;
}
.case-list li {
  color: #b6c9de;
  padding-left: 1.05rem;
  position: relative;
}
.case-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  position: absolute;
  left: 0;
  top: 0.66rem;
}
.case-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.72rem;
  flex-wrap: wrap;
}
.tag-row {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.tag-row span {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.3rem 0.66rem;
  color: #b7cae1;
  font-size: 0.8rem;
}

/* Timeline */
.timeline {
  margin-top: 0.8rem;
  position: relative;
  display: grid;
  gap: 1rem;
  padding-left: 2.2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.7rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--cyan-soft), rgba(0, 242, 255, 0.05));
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}
.timeline-item {
  position: relative;
  padding: 1.1rem 1.1rem 1.1rem 1rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.86rem;
  top: 1.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.9);
}
.timeline-item .year {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--cyan);
  font-weight: 700;
}
.timeline-item h3 {
  margin-bottom: 0.33rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.timeline-item p { color: var(--muted); }

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.project-card {
  padding: 0.85rem;
}
.project-card img {
  border-radius: 11px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 0.72rem;
  filter: grayscale(100%);
  transition: filter 0.28s ease, transform 0.28s ease;
}
.project-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.02);
}
.project-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 0.35rem;
}
.project-card p { color: var(--muted); font-size: 0.94rem; }
.project-links {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.6rem;
}
.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 242, 255, 0.18);
  background: rgba(0, 242, 255, 0.06);
  color: var(--text);
  font-size: 0.8rem;
  transition: 0.25s ease;
}
.project-link:hover {
  color: var(--cyan);
  border-color: rgba(0, 242, 255, 0.45);
  box-shadow: 0 0 16px rgba(0, 242, 255, 0.18);
}

/* Skills and Contact */
.skills-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.skill-card {
  padding: 1rem;
}
.skill-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 0.3rem;
}
.skill-card p { color: var(--muted); font-size: 0.93rem; }

.contact-block {
  padding: 1.2rem;
}
.contact-block h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 0.8rem;
  font-size: 1.8rem;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.field-group {
  display: grid;
  gap: 0.32rem;
  margin-bottom: 0.7rem;
}
label {
  font-size: 0.86rem;
  color: #bed2e8;
}
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(11, 17, 25, 0.7);
  color: var(--text);
  border-radius: 10px;
  padding: 0.67rem 0.72rem;
  outline: none;
  transition: 0.25s ease;
}
input:focus,
textarea:focus {
  border-color: rgba(0, 242, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(0, 242, 255, 0.13);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0;
  background: rgba(8, 10, 15, 0.85);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: #9fb2c9;
  font-size: 0.9rem;
}
.footer-links {
  display: flex;
  gap: 0.9rem;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0, 242, 255, 0.2);
  background: rgba(0, 242, 255, 0.05);
  display: grid;
  place-items: center;
  color: #cfe2f5;
  transition: 0.25s ease;
}
.social-icon svg {
  width: 16px;
  height: 16px;
}
.social-icon:hover {
  color: var(--cyan);
  border-color: rgba(0, 242, 255, 0.45);
  box-shadow: 0 0 16px rgba(0, 242, 255, 0.2);
}
.footer a:hover { color: var(--cyan); }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 242, 255, 0.4);
  background: rgba(22, 27, 34, 0.75);
  color: var(--cyan);
  padding: 0.56rem 0.82rem;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
