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

:root {
  --bg: #05080f;
  --bg2: #0a0e1a;
  --bg3: #0f1524;
  --white: #f0f4ff;
  --accent: #4f8bff;
  --green: #00e5a0;
  --pink: #ff4fa3;
  --muted: #64748b;
  --border: rgba(79, 139, 255, 0.15);
  --card: rgba(255, 255, 255, 0.035);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Make font size bigger on desktop screens */
@media (min-width: 992px) {
  html {
    font-size: 18px;
  }
}

@media (min-width: 1400px) {
  html {
    font-size: 19px;
  }
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Roboto', sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

/* ── Ambient background fx — film grain + spotlight ── */
/* Matte film grain over the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Soft spotlight that follows the cursor */
.spotlight {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(560px circle at var(--sx, 50%) var(--sy, 30%),
      rgba(79, 139, 255, 0.1),
      rgba(0, 229, 160, 0.035) 45%,
      transparent 72%);
}

/* ── Cursor ─────────────────────────────────── */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease;
}

.cursor-ring {
  position: fixed;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(79, 139, 255, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border-color 0.2s, transform 0.15s ease;
}

.cursor-ring.hovered {
  width: 52px;
  height: 52px;
  border-color: var(--green);
}

body {
  cursor: none;
}

/* ── Nav ──────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 6vw;
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.2rem;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.25s;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
  color: var(--white);
}

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

.nav-links a.active {
  color: var(--white);
}

.nav-links a.active::after {
  width: 100%;
  background: var(--green);
}

.hire-me-sticky {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.6rem;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  z-index: 150;
  box-shadow: 0 4px 24px rgba(79, 139, 255, 0.45);
  transition: transform 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}

.hire-me-sticky:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 32px rgba(79, 139, 255, 0.6);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

/* ── Skip link ─────────────────────────────── */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: translateY(-140%);
  transition: transform 0.2s;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ── Hero ─────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5.5rem 6vw 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 200px;
}

.hero-glow {
  position: absolute;
  top: -15%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(79, 139, 255, 0.12) 0%, transparent 65%);
}

.hero-glow2 {
  position: absolute;
  bottom: -5%;
  left: -8%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 229, 160, 0.08) 0%, transparent 65%);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 4.5rem;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.hero-left {
  flex: 1;
}

.hero-name {
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1.4rem;
}

.hero-name .line2 {
  color: var(--accent);
}

/* Typewriter caret for the hero heading */
.hero-name .type-line {
  display: inline-block;
  min-height: 1em;
}

.hero-name .caret::after {
  content: '';
  display: inline-block;
  width: 0.08em;
  height: 0.85em;
  margin-left: 0.1em;
  background: var(--green);
  vertical-align: -0.08em;
  animation: caretBlink 0.85s steps(1) infinite;
}

@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}

.hero-desc {
  font-size: 1.18rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 520px;
  margin-bottom: 2.4rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.92rem 2.1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.03em;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

.btn-outline {
  border: 1px solid var(--border);
  color: var(--white);
  text-decoration: none;
  padding: 0.92rem 2.1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.03em;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-metrics {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.metric-num {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}

.metric-num span {
  color: var(--accent);
}

.metric-label {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

.metric-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

@keyframes card-glow-pulse {

  0%,
  100% {
    box-shadow: 0 0 18px 3px rgba(79, 139, 255, 0.25), 0 0 0 1px rgba(79, 139, 255, 0.2);
  }

  33% {
    box-shadow: 0 0 22px 5px rgba(0, 229, 160, 0.22), 0 0 0 1px rgba(0, 229, 160, 0.2);
  }

  66% {
    box-shadow: 0 0 22px 5px rgba(255, 79, 163, 0.2), 0 0 0 1px rgba(255, 79, 163, 0.18);
  }
}

.hero-right {
  flex: 0 0 auto;
  position: relative;
}

.hero-right::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 139, 255, 0.18) 0%, rgba(0, 229, 160, 0.1) 40%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 0;
}

.hero-right:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.profile-card {
  position: relative;
  z-index: 1;
  width: 400px;
  background: var(--card);
  border: 1px solid rgba(79, 139, 255, 0.35);
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  animation: card-glow-pulse 4s ease-in-out infinite;
}

.profile-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 139, 255, 0.55);
  box-shadow: 0 18px 40px rgba(3, 9, 20, 0.5), 0 0 30px 6px rgba(79, 139, 255, 0.35);
  animation-play-state: paused;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--green), var(--pink));
  z-index: 2;
}

.profile-head {
  position: relative;
  height: 440px;
  overflow: hidden;
  border-radius: 24px;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
  display: block;
  position: relative;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.4s ease;
}

.profile-card:hover .profile-avatar img {
  transform: scale(1.05);
}

.profile-head-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.4rem 1.2rem;
  background: linear-gradient(to top, rgba(5, 8, 15, 0.97) 0%, rgba(5, 8, 15, 0.7) 55%, transparent 100%);
  text-align: center;
}

.profile-name {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 3px;
}

.profile-title {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* ── Marquee ─────────────────────────────── */
.marquee-strip {
  overflow: hidden;
  width: 100%;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(79, 139, 255, 0.15);
  border-bottom: 1px solid rgba(0, 229, 160, 0.15);
  background: linear-gradient(90deg, rgba(79, 139, 255, 0.04), rgba(0, 229, 160, 0.03), rgba(79, 139, 255, 0.04));
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 24s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.marquee-item {
  font-family: 'Roboto', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0 1.4rem;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.marquee-item::after {
  content: '·';
  color: var(--green);
  margin-left: 1.4rem;
  font-weight: 700;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ── Sections shared ──────────────────────── */
section {
  padding: 6rem 6vw;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: 'Roboto', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-sub {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 2rem 0 3rem;
  opacity: 0.2;
}

/* ── About ──────────────────────────────────── */
.about-section {
  background: var(--bg2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: stretch;
  margin-top: 3rem;
}

.about-text p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 0.97rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.about-text p strong {
  color: var(--white);
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

@media (max-width: 767px) {
  .about-pills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .pill {
    text-align: center;
  }

  .about-pills .pill:last-child {
    grid-column: span 2;
  }
}

.pill {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-right > div:last-child {
  flex: 1;
}

.info-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.info-row i {
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.info-row-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.info-row-val {
  font-size: 0.9rem;
  color: var(--white);
  font-weight: 600;
}

.experience-bar {
  margin-top: 0.5rem;
}

.exp-item {
  display: block;
  margin-bottom: 1.2rem;
}

.exp-bar {
  height: 4px;
  background: rgba(79, 139, 255, 0.12);
  border-radius: 4px;
  margin-top: 0.35rem;
  overflow: hidden;
}

.exp-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--green));
}

/* ── Services ───────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  margin-top: 3rem;
}

@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 360px));
    gap: 1.8rem;
    justify-content: center;
  }
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  opacity: 0;
  transition: opacity 0.25s;
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(79, 139, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.75;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.2rem;
}

.stag {
  font-family: 'Roboto', sans-serif;
  font-size: 0.78rem;
  background: rgba(79, 139, 255, 0.08);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
}

/* ── Case Studies / Work ────────────────────── */
.work-section {
  background: var(--bg2);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.6rem;
  margin-top: 3rem;
}

@media (min-width: 992px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
  }
}

.work-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}

.work-card-header {
  padding: 1.6rem 1.6rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.work-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.work-icon.laos-logo {
  background: #ffffff;
  padding: 6px;
}

.work-icon.laos-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.work-icon.laskill-logo {
  background: #ffffff;
  padding: 6px;
}

.work-icon.laskill-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.work-icon.chaindustry-logo,
.work-icon.dinari-logo,
.work-icon.stafi-logo {
  background: #fff;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-icon.chaindustry-logo img,
.work-icon.dinari-logo img,
.work-icon.stafi-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.work-icon.dexari-logo {
  background: #fff;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-icon.dexari-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.work-icon.syntetika-logo {
  background: #fff;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-icon.syntetika-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.work-meta {
  flex: 1;
}

.work-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 0.5rem;
}

.work-status.live {
  background: rgba(0, 229, 160, 0.1);
  color: var(--green);
  border: 1px solid rgba(0, 229, 160, 0.25);
}

.work-status.past {
  background: rgba(100, 116, 139, 0.12);
  color: var(--muted);
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.work-name {
  font-size: 1rem;
  font-weight: 700;
}

.work-role {
  font-size: 0.73rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.work-body {
  padding: 0 1.6rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.work-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.1rem;
}

.work-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

@media (max-width: 560px) {
  .work-results {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .work-results .result-box:nth-child(3):last-child {
    grid-column: span 2;
  }
}

.result-box {
  background: rgba(79, 139, 255, 0.06);
  border: 1px solid rgba(79, 139, 255, 0.1);
  border-radius: 8px;
  padding: 0.65rem 0.5rem;
  text-align: center;
}

.result-num {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
}

.result-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.work-footer {
  padding: 1rem 1.6rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.work-footer span {
  font-family: 'Roboto', sans-serif;
  font-size: 0.7rem;
  color: var(--muted);
}

/* ── Content gallery ─────────────────────────── */
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
}

@media (min-width: 992px) {
  .content-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
  }
}

.content-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.content-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.content-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.content-card figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.84rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.45;
  word-break: break-word;
}

.content-tag {
  background: rgba(79, 139, 255, 0.1);
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  flex-shrink: 0;
}

.content-card {
  cursor: pointer;
}

/* ── LAOS full-set strip ─────────────────────── */
.laos-strip {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.laos-box {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  text-align: left;
  color: var(--white);
  font-family: inherit;
  transition: border-color 0.25s, transform 0.25s;
}

.laos-box:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.laos-box-previews {
  display: flex;
  flex-shrink: 0;
}

.laos-box-previews img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--bg);
  margin-left: -14px;
}

.laos-box-previews img:first-child {
  margin-left: 0;
}

.laos-box-text {
  flex: 1;
}

.laos-box-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.laos-box-text p {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.laos-box-arrow {
  color: var(--accent);
  font-size: 1.1rem;
}

/* ── LAOS gallery modal ──────────────────────── */
.laos-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  background: rgba(5, 8, 15, 0.94);
  backdrop-filter: blur(10px);
  overflow-y: auto;
  padding: 1.5rem 6vw 3rem;
}

.laos-modal.open {
  display: block;
}

.laos-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto 1.4rem;
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  background: rgba(5, 8, 15, 0.94);
  z-index: 2;
}

.laos-modal-head h3 {
  font-size: 1.15rem;
  font-weight: 700;
  flex: 1;
  min-width: 0;
  padding-right: 0.5rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.laos-modal-head .lm-close {
  position: relative;
  transform: none;
  flex-shrink: 0;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
}

@media (max-width: 480px) {
  .laos-modal-head {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .laos-modal-head h3 {
    font-size: 1rem;
    padding-top: 0.4rem;
    padding-right: 0;
  }

  .lm-close {
    width: 40px;
    height: 40px;
  }
}

.laos-modal .laos-grid {
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.laos-count {
  background: var(--green);
  color: #05080f;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 2px 9px;
  border-radius: 100px;
  vertical-align: middle;
  margin-left: 0.4rem;
}

.laos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.laos-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.laos-thumb:hover {
  transform: scale(1.05);
  border-color: var(--accent);
}

/* ── Lightbox ────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 15, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(88vw, 760px);
  max-height: 82vh;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lb-btn {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.lb-btn:hover {
  background: rgba(79, 139, 255, 0.2);
  border-color: var(--accent);
}

.lb-close {
  top: 1.2rem;
  right: 1.2rem;
}

.lb-prev {
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lb-caption {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.8rem;
  max-width: 80vw;
  text-align: center;
}

/* ── Impact numbers ──────────────────────────── */
.impact-section {
  background: var(--bg3);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-top: 3rem;
}

@media (max-width: 560px) {
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .impact-card {
    padding: 1.2rem 0.8rem;
  }

  .impact-num {
    font-size: 1.8rem;
  }

  .impact-label {
    font-size: 0.72rem;
  }
}

.impact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem 1.4rem;
  text-align: center;
  transition: border-color 0.2s;
}

.impact-card:hover {
  border-color: var(--green);
}

.impact-num {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.impact-num.blue {
  color: var(--accent);
}

.impact-num.green {
  color: var(--green);
}

.impact-num.pink {
  color: var(--pink);
}

.impact-label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ── Tools ───────────────────────────────────── */
.tools-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 3rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem 0.9rem;
  text-align: center;
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
  flex: 0 0 calc(50% - 0.7rem);
  box-sizing: border-box;
}

.tool-card:hover {
  border-color: var(--accent);
  background: rgba(79, 139, 255, 0.08);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.tool-card i {
  font-size: 1.7rem;
  display: block;
  margin-bottom: 0.6rem;
  color: var(--accent);
  transition: transform 0.25s;
}

.tool-card:hover i {
  transform: scale(1.1);
}

.tool-card span {
  font-size: 0.85rem;
  color: var(--white);
  font-weight: 600;
}

@media (min-width: 561px) {
  .tool-card {
    flex: 0 0 calc(33.333% - 0.95rem);
  }
}

@media (min-width: 992px) {
  .tools-grid {
    gap: 1.8rem;
    max-width: 1000px;
  }

  .tool-card {
    flex: 0 0 calc(25% - 1.35rem);
    padding: 1.8rem 1rem;
  }

  .tool-card i {
    font-size: 2rem;
    margin-bottom: 0.7rem;
  }

  .tool-card span {
    font-size: 0.92rem;
  }
}

/* ── Testimonials ────────────────────────────── */
.testimonials-section {
  background: var(--bg2);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
  margin-top: 3rem;
}

.tcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.tcard-stars {
  color: #fbbf24;
  font-size: 0.72rem;
  margin-bottom: 0.9rem;
  letter-spacing: 2px;
}

.tcard-quote {
  font-size: 2.8rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
  font-family: 'Roboto', sans-serif;
}

.tcard-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  font-style: italic;
  margin: 0.3rem 0 1.4rem;
  flex: 1;
}

.tcard-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.tcard-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
}

.tcard-avatar.a {
  background: linear-gradient(135deg, var(--accent), #7b5ea7);
}

.tcard-avatar.b {
  background: linear-gradient(135deg, var(--green), var(--accent));
}

.tcard-avatar.c {
  background: linear-gradient(135deg, var(--pink), #7b5ea7);
}

.tcard-name {
  font-size: 0.88rem;
  font-weight: 700;
}

.tcard-role {
  font-size: 0.73rem;
  color: var(--muted);
}

/* ── Contact ─────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4.5rem;
  align-items: stretch;
  margin-top: 3rem;
}

.contact-intro {
  display: flex;
  flex-direction: column;
}

.contact-intro p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 0.98rem;
  margin-bottom: 1.4rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.channel-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  text-decoration: none;
  color: var(--white);
  transition: border-color 0.2s, transform 0.2s;
}

.channel-link:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.channel-link i {
  color: var(--accent);
  width: 18px;
  text-align: center;
}

.channel-link span {
  font-size: 0.88rem;
  font-weight: 600;
}

/* ── Footer ──────────────────────────────── */
footer {
  padding: 2.2rem 6vw;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

footer p {
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  color: var(--muted);
  font-size: 1rem;
  transition: color 0.2s;
}

.footer-socials a:hover {
  color: var(--accent);
}

/* ── Scroll shortcuts ──────────────────────── */
.scroll-btn {
  position: fixed;
  right: 1.5rem;
  z-index: 150;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

.scroll-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.scroll-btn:hover {
  box-shadow: 0 0 18px 4px rgba(79, 139, 255, 0.35);
  color: var(--white);
}

#scrollToTop {
  bottom: 5rem;
}

#scrollToFooter {
  bottom: 1.5rem;
}

/* ── Scroll reveal ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 960px) {
  body {
    cursor: auto !important;
  }

  .cursor,
  .cursor-ring {
    display: none !important;
  }

  .hero-inner {
    flex-direction: column;
    gap: 3rem;
    text-align: center;
  }

  .hero-desc {
    margin: 0 auto 2.4rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-metrics {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
    cursor: pointer;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background: var(--bg2);
    padding: 5rem 2rem 2rem;
    border-left: 1px solid var(--border);
    z-index: 99;
    gap: 1.5rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.open a {
    font-size: 1.05rem;
  }
}

@media (max-width: 560px) {
  .profile-card {
    width: 100%;
  }

  .laos-box {
    gap: 1rem;
    padding: 1rem;
  }

  .laos-box-previews img {
    width: 44px;
    height: 44px;
    margin-left: -10px;
  }

  .laos-box-arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  section {
    padding: 3.5rem 4vw;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }
}

/* Small-screen layout safeguards */
.hero-left,
.about-grid > *,
.contact-grid > *,
.work-card,
.channel-link span {
  min-width: 0;
}

.channel-link span {
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  nav {
    padding: 1rem 5vw;
  }

  .nav-links.open {
    width: min(84vw, 320px);
    padding: 5rem 1.5rem 2rem;
  }

  .hero {
    min-height: auto;
    padding: 7rem 5vw 4rem;
  }

  .hero-inner {
    gap: 2.5rem;
  }

  .profile-card {
    width: min(100%, 400px);
  }

  .profile-head {
    height: min(105vw, 390px);
  }

  section {
    padding: 4.5rem 5vw;
  }

  .section-sub {
    font-size: 1rem;
  }

  .services-grid,
  .work-grid,
  .content-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }

  .about-grid,
  .contact-grid {
    gap: 2rem;
    margin-top: 2rem;
  }

  .service-card,
  .tcard {
    padding: 1.5rem;
  }

  .work-card-header,
  .work-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .work-body {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .laos-modal {
    padding: 4.25rem 4vw 2rem;
  }

  .laos-modal .laos-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: clamp(2.7rem, 13vw, 3.5rem);
  }

  .hero-desc {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.8rem;
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 2.25rem;
    text-align: center;
    justify-items: center;
  }

  .metric-divider {
    display: none;
  }

  .metric-num {
    font-size: 1.55rem;
  }

  .metric-label {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    line-height: 1.35;
  }

  .laos-box {
    align-items: flex-start;
  }

  .laos-box-text h3 {
    font-size: 0.95rem;
  }

  .laos-box-text p {
    line-height: 1.45;
  }

  .lightbox img {
    max-width: calc(100vw - 2rem);
    max-height: 72svh;
  }

  .lb-btn {
    width: 40px;
    height: 40px;
  }

  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .lb-prev {
    left: calc(50% - 48px);
  }

  .lb-next {
    right: calc(50% - 48px);
  }

  .lb-caption {
    bottom: 4.5rem;
    max-width: calc(100vw - 2rem);
  }

  footer {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .footer-socials {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hire-me-sticky {
    left: 1rem;
    bottom: 1rem;
    padding: 0.7rem 1.1rem;
  }

  .scroll-btn {
    right: 1rem;
  }
}
