:root {
  --navy-950: #04121f;
  --navy-900: #071c33;
  --navy-800: #0a2540;
  --navy-700: #0f3558;
  --blue-600: #0a7cc4;
  --blue-500: #1a93e0;
  --orange-500: #f28c1e;
  --orange-400: #ffa43c;
  --ink-900: #0b1b2b;
  --ink-700: #34485c;
  --ink-500: #5d7085;
  --ink-300: #9aabc0;
  --line: #e3eaf3;
  --surface: #ffffff;
  --canvas: #eef3f9;
  --whatsapp: #1faa54;
  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-xl: 0 40px 90px -40px rgba(5, 25, 50, 0.55);
  --shadow-md: 0 18px 40px -24px rgba(5, 25, 50, 0.45);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--canvas);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.page-shell {
  position: relative;
  overflow-x: clip;
  min-height: 100vh;
}

/* ---------------------------------------------------------------- */
/* Hero                                                             */
/* ---------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(14px, 2vw, 24px) clamp(14px, 4vw, 40px) clamp(46px, 6vw, 80px);
  background:
    radial-gradient(1000px 520px at 15% -10%, rgba(26, 147, 224, 0.35), transparent 65%),
    radial-gradient(760px 460px at 95% 10%, rgba(242, 140, 30, 0.18), transparent 60%),
    linear-gradient(150deg, var(--navy-950) 0%, var(--navy-900) 45%, #0b2b4a 100%);
  isolation: isolate;
}

.hero__decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.5;
}

.orb--blue {
  width: 320px;
  height: 320px;
  left: -110px;
  bottom: 40px;
  background: radial-gradient(circle, rgba(26, 147, 224, 0.55), transparent 70%);
}

.orb--orange {
  width: 260px;
  height: 260px;
  right: -80px;
  top: 25%;
  background: radial-gradient(circle, rgba(242, 140, 30, 0.4), transparent 70%);
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 72%);
}

.card {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--surface);
  animation: cardIn 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.card__identity {
  position: relative;
  padding: clamp(28px, 4.4vw, 52px);
  color: #fff;
  background:
    radial-gradient(520px 320px at 90% 0%, rgba(26, 147, 224, 0.3), transparent 70%),
    linear-gradient(165deg, #0a2743 0%, var(--navy-950) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.card__identity::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-500), var(--blue-500));
}

.logo-ring {
  width: clamp(96px, 14vw, 124px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(140deg, #fff, rgba(255, 255, 255, 0.6));
  box-shadow: 0 20px 45px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.logo-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.eyebrow {
  margin: 22px 0 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-400);
}

.brand-name {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.identity-divider {
  width: 46px;
  height: 2px;
  margin: 18px 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.person-name {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.designation {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.about {
  margin: 18px 0 0;
  font-size: 0.86rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.66);
  max-width: 34ch;
}

.about:empty {
  display: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  line-height: 1;
}

.btn svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

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

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--orange-400);
  outline-offset: 2px;
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(31, 170, 84, 0.85);
}

.btn--whatsapp:hover {
  background: #178f45;
}

.btn--primary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.btn--primary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 26px;
  width: 100%;
}

.btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  font-size: 0.85rem;
  padding: 11px 18px;
}

.btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Our Work / Projects CTA — floats gently to draw attention */

.btn--work {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: 440px;
  align-self: center;
  margin-top: 16px;
  padding: 17px 28px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
  background-image: linear-gradient(115deg, var(--orange-500) 0%, #f2682a 46%, var(--blue-600) 100%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  box-shadow:
    0 18px 36px -18px rgba(242, 140, 30, 0.9),
    0 10px 30px -22px rgba(10, 124, 196, 0.8),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  animation: workFloat 3.4s ease-in-out infinite;
  transition:
    translate 0.25s ease,
    scale 0.25s ease,
    background-position 0.55s ease,
    box-shadow 0.3s ease;
  will-change: transform;
}

.btn--work svg {
  width: 21px;
  height: 21px;
  transition: transform 0.25s ease;
}

.btn--work::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    transparent 18%,
    rgba(255, 255, 255, 0.45) 48%,
    transparent 78%
  );
  transform: translateX(-130%);
  transition: transform 0.75s ease;
  pointer-events: none;
}

.btn--work:hover {
  translate: 0 -5px;
  scale: 1.035;
  background-position: 100% 50%;
  box-shadow:
    0 26px 48px -18px rgba(242, 140, 30, 0.95),
    0 18px 42px -20px rgba(10, 124, 196, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.btn--work:hover::after {
  transform: translateX(130%);
}

.btn--work:hover svg {
  transform: translateX(2px) rotate(-6deg);
}

.btn--work:active {
  translate: 0 -1px;
  scale: 0.995;
}

.btn--work:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@keyframes workFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Details panel */

.card__details {
  padding: clamp(28px, 4.4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  background:
    radial-gradient(420px 240px at 100% 0%, rgba(10, 124, 196, 0.07), transparent 70%),
    var(--surface);
}

.details-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.details-head h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: var(--ink-900);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #157347;
  background: #e8f7ef;
  border-radius: 999px;
  padding: 6px 11px;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25a55b;
  box-shadow: 0 0 0 3px rgba(37, 165, 91, 0.16);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbfcff;
  min-width: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-item:hover {
  border-color: #cbdcf0;
  box-shadow: 0 10px 22px -20px rgba(5, 25, 50, 0.5);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex-shrink: 0;
  color: var(--blue-600);
  background: rgba(10, 124, 196, 0.09);
}

.contact-icon svg {
  width: 19px;
  height: 19px;
}

.contact-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.contact-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-900);
  overflow-wrap: anywhere;
  word-break: break-word;
}

a.contact-value:hover {
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.map-block {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e8eef6;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-md);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-600);
}

.map-link svg {
  width: 15px;
  height: 15px;
}

.map-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------------------------------------------------------------- */
/* Portfolio                                                        */
/* ---------------------------------------------------------------- */

.portfolio {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 84px) clamp(16px, 4vw, 40px) clamp(30px, 4vw, 50px);
  scroll-margin-top: 24px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.eyebrow--dark {
  margin: 0 0 8px;
  color: var(--orange-500);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-weight: 800;
}

.section-sub {
  margin: 8px 0 0;
  color: var(--ink-500);
  font-size: 0.92rem;
  max-width: 46ch;
}

.project-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy-800);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(16px, 2.4vw, 24px);
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: cardIn 0.5s ease both;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 50px -32px rgba(5, 25, 50, 0.5);
  border-color: #cfdfef;
}

.project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #0a2a48, #0d4a72 55%, #0a7cc4);
}

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

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

.project-media__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
}

.project-media__fallback::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.7;
}

.project-media__initials {
  position: relative;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
}

.project-media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(4, 18, 31, 0.55), transparent);
  pointer-events: none;
}

.project-category {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(4, 18, 31, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 5px 10px;
  backdrop-filter: blur(6px);
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.project-title {
  margin: 0;
  font-size: 1.07rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.project-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink-500);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.project-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 12px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--blue-600);
}

.project-cta svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.project-card:hover .project-cta svg {
  transform: translate(2px, -2px);
}

.project-card--linked {
  cursor: pointer;
}

.project-card--linked:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 3px;
}

.empty-state {
  text-align: center;
  padding: clamp(36px, 6vw, 64px) 20px;
  border: 1px dashed #c3d4e6;
  border-radius: var(--radius-lg);
  color: var(--ink-500);
  background: rgba(255, 255, 255, 0.55);
}

.empty-state h3 {
  margin: 0 0 6px;
  color: var(--ink-900);
  font-size: 1.05rem;
}

.empty-state p {
  margin: 0;
  font-size: 0.9rem;
}

/* ---------------------------------------------------------------- */
/* Footer / toast                                                   */
/* ---------------------------------------------------------------- */

.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px clamp(16px, 4vw, 40px) 34px;
  border-top: 1px solid #dde7f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  color: var(--ink-500);
  font-size: 0.8rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-900);
  font-weight: 700;
  font-size: 0.86rem;
  min-width: 0;
}

.footer-brand img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.site-footer p {
  margin: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 140%);
  z-index: 100;
  background: var(--navy-900);
  color: #fff;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
  max-width: calc(100vw - 32px);
  text-align: center;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ---------------------------------------------------------------- */
/* Responsive                                                       */
/* ---------------------------------------------------------------- */

@media (max-width: 860px) {
  .card {
    grid-template-columns: minmax(0, 1fr);
    max-width: 600px;
  }

  .card__identity {
    padding-bottom: 34px;
  }

  .share-row {
    padding-top: 20px;
  }

  .map-block {
    margin-top: 4px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 12px 12px 36px;
  }

  .card {
    border-radius: 22px;
  }

  .card__identity,
  .card__details {
    padding: 26px 20px;
  }

  .actions {
    gap: 8px;
  }

  .btn {
    padding: 12px 18px;
    font-size: 0.9rem;
  }

  .btn svg {
    width: 18px;
    height: 18px;
  }

  .btn--work {
    max-width: none;
    padding: 15px 18px;
    font-size: 1rem;
  }

  .share-row .btn {
    flex: 1 1 0;
  }

  .details-head {
    align-items: flex-start;
  }

  .status-pill {
    font-size: 0.66rem;
  }

  .project-body {
    padding: 16px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

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