.profile-showcase {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 620px;
  padding: 44px 28px 50px;
}
.profile-showcase::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 92, 255, 0.38),
    rgba(40, 213, 195, 0.13) 42%,
    transparent 70%
  );
  filter: blur(24px);
}
.profile-showcase::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 7% 13%;
  border-radius: 30px;
  pointer-events: none;
  background: linear-gradient(
    112deg,
    transparent 35%,
    rgba(255, 255, 255, 0.16) 47%,
    transparent 58%
  );
  background-size: 220% 100%;
  mix-blend-mode: screen;
  animation: profile-shine 7s ease-in-out 1.7s infinite;
}
.profile-card {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  margin: 0;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  background: linear-gradient(
    145deg,
    rgba(31, 38, 67, 0.82),
    rgba(8, 14, 28, 0.68)
  );
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.45),
    0 0 70px rgba(91, 102, 255, 0.2);
  transform: translateY(0) scale(1) rotate(1deg);
  animation: profile-pop 920ms cubic-bezier(0.16, 1.2, 0.3, 1) both;
}
.profile-image-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 24px;
  background: #161b31;
}
.profile-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(5, 9, 20, 0.04) 48%,
    rgba(5, 9, 20, 0.8)
  );
}
.profile-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 78%;
  filter: saturate(0.9) contrast(1.06);
  transition:
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 700ms ease;
}
.profile-card:hover .profile-image-wrap img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.08) brightness(1.05);
}
.profile-caption {
  display: grid;
  gap: 5px;
  padding: 19px 10px 8px;
}
.profile-caption strong {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 21px;
}
.profile-caption span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.profile-caption p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.profile-ring {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(113, 205, 255, 0.23);
  border-radius: 50%;
  pointer-events: none;
}
.profile-ring-primary {
  width: 85%;
  aspect-ratio: 1;
  animation: ring-spin 28s linear infinite;
}
.profile-ring-secondary {
  width: 63%;
  aspect-ratio: 1;
  border-color: rgba(169, 128, 255, 0.22);
  animation: ring-spin-reverse 22s linear infinite;
}
.profile-badge {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 54px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  background: rgba(20, 29, 52, 0.66);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  color: #e8ecff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  animation: badge-float 5s ease-in-out infinite;
}
.profile-badge-ai {
  top: 17%;
  left: 3%;
  color: #a79cff;
}
.profile-badge-code {
  right: 0;
  bottom: 27%;
  animation-delay: -1.7s;
  color: var(--cyan);
}
.profile-badge-cloud {
  top: auto;
  bottom: 55%;
  left: 1%;
  animation-delay: -3.2s;
  color: #9ecbff;
}
@keyframes profile-pop {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(35px) scale(0.86) rotate(-4deg);
  }
  72% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-6px) scale(1.03) rotate(1.5deg);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1) rotate(1deg);
  }
}
@keyframes profile-shine {
  0%,
  20% {
    background-position: 120% 0;
  }
  55%,
  100% {
    background-position: -120% 0;
  }
}
@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes ring-spin-reverse {
  to {
    transform: rotate(-360deg);
  }
}
@keyframes badge-float {
  50% {
    transform: translateY(-8px);
  }
}
@media (max-width: 900px) {
  .profile-showcase {
    min-height: 560px;
    padding-top: 25px;
  }
  .profile-card {
    width: min(100%, 340px);
  }
}
@media (max-width: 620px) {
  .profile-showcase {
    min-height: auto;
    padding: 36px 8px 42px;
  }
  .profile-card {
    width: min(100%, 330px);
  }
  .profile-ring-primary {
    width: 94%;
  }
  .profile-ring-secondary {
    width: 72%;
  }
  .profile-badge-ai {
    left: -2%;
  }
  .profile-badge-code {
    right: -2%;
  }
  .profile-badge-cloud {
    top: 0;
    bottom: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .profile-card,
  .profile-ring,
  .profile-badge,
  .profile-showcase::after {
    animation: none;
  }
  .profile-card {
    transform: rotate(1deg);
  }
  .profile-card:hover .profile-image-wrap img {
    transform: none;
  }
}
:root {
  --bg: #070b16;
  --text: #f7f8fc;
  --muted: #98a4ba;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #7c5cff;
  --cyan: #28d5c3;
  --card: rgba(14, 21, 37, 0.72);
  --max: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(
      circle at 80% 0,
      rgba(124, 92, 255, 0.18),
      transparent 30rem
    ),
    radial-gradient(
      circle at 0 35%,
      rgba(40, 213, 195, 0.08),
      transparent 25rem
    ),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  max-width: var(--max);
  margin: auto;
  padding: 0 24px;
}
.glass {
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 22, 0.75);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: auto;
  padding: 15px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  font-size: 12px;
}
.brand em {
  color: var(--cyan);
  font-style: normal;
}
.nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}
.nav a:hover {
  color: #fff;
}
.menu {
  display: none;
  background: none;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
}
.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
  padding-top: 75px;
  padding-bottom: 90px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 15px;
}
h1,
h2,
h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  line-height: 1.08;
}
h1 {
  font-size: clamp(3.2rem, 7vw, 6.7rem);
  letter-spacing: -0.065em;
  margin: 0;
}
h1 span {
  background: linear-gradient(135deg, #fff, #a79cff, #75e6da);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 690px;
  margin: 27px 0;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-weight: 750;
  font-size: 13px;
}
.primary {
  background: linear-gradient(135deg, var(--accent), #5c6cff);
  border: 0;
  color: #fff;
}
.secondary {
  background: var(--card);
}
.quick-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 25px;
  color: var(--muted);
  font-size: 13px;
}
.console {
  border-radius: 22px;
  overflow: hidden;
  transform: rotate(1deg);
}
.console-head {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  color: #64748b;
}
.console-head code {
  float: right;
}
.console-body {
  padding: 25px;
  font-family: ui-monospace, monospace;
}
.console-body p {
  color: #64748b;
  margin: 14px 0 3px;
}
.console-body strong {
  font-weight: 500;
}
.success {
  color: var(--cyan) !important;
}
.section {
  padding-top: 105px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 35px;
  margin-bottom: 35px;
}
.section-title h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.055em;
  margin: 0;
}
.section-title > p {
  max-width: 540px;
  color: var(--muted);
  margin: 0;
}
.text-link {
  font-size: 13px;
  font-weight: 750;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}
.feature {
  padding: 23px;
  border-radius: 18px;
  min-height: 220px;
  transition: 0.25s;
}
.feature:hover,
.project:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.45);
}
.feature i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(124, 92, 255, 0.13);
  color: var(--cyan);
  font-style: normal;
  font-weight: 800;
}
.feature h3 {
  font-size: 21px;
  margin: 26px 0 9px;
}
.feature p,
.project p {
  color: var(--muted);
  font-size: 14px;
}
.project-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 13px;
}
.project {
  padding: 24px;
  border-radius: 18px;
  min-height: 270px;
  transition: 0.25s;
}
.project small {
  letter-spacing: 0.16em;
  color: var(--cyan);
  font-weight: 800;
}
.project h3 {
  font-size: 28px;
  margin: 30px 0 8px;
}
.chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 25px;
}
.chips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 10px;
}
.cta {
  border-radius: 22px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin: 55px 0 70px;
}
.cta h2 {
  font-size: clamp(2.3rem, 4vw, 4rem);
  margin: 0;
}
.cta p {
  color: var(--muted);
}
.footer {
  max-width: var(--max);
  margin: auto;
  padding: 30px 24px 45px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.page-hero {
  padding-top: 110px;
  padding-bottom: 65px;
}
.page-hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
}
.content {
  max-width: 820px;
}
.content p {
  color: var(--muted);
  font-size: 17px;
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding-bottom: 100px;
}
.content-card {
  padding: 25px;
  border-radius: 18px;
}
.content-card h2 {
  margin-top: 0;
}
@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .menu {
    display: block;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 620px) {
  .container,
  .header-inner,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .hero h1 {
    font-size: clamp(2.9rem, 14vw, 4.5rem);
  }
  .feature-grid,
  .project-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    display: block;
  }
  .section-title > p {
    margin-top: 15px;
  }
  .footer {
    flex-direction: column;
  }
}

/* Keep the CLOUD badge beside the image on narrow screens. */
@media (max-width: 620px) {
  .profile-badge-cloud {
    top: auto;
    bottom: auto;
    transform: translateY(-220px) !important;
  }
}

/* Keep the two live project cards balanced until the archive opens. */
.project-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 620px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}
