:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Page base (inside iframe) */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-color: #000000;
  color: #ffffff;
}

/* Main layout */
.about-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 6vw;
  box-sizing: border-box;
  background-color: #ffffff; /* white outer background */
}

/* Card-style content box */
.about-content {
  width: 100%;
  max-width: 58rem;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 1.5rem;
  border: 0.15rem solid #ffcc00;
  padding: 2.5rem 2.75rem;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.6);
}

/* ---------- TOP HEADER: photo + intro ---------- */

.about-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.2fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.about-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
 
  gap: 1rem;
}

.about-profile-photo {
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  border: 0.1rem solid hsl(48, 100%, 50%);
  object-fit: cover;
}

.about-profile-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

/* NAME EFFECT BASE */
.about-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  background-image: linear-gradient(120deg, #ffcc00, #ff8800, #ffffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(0.4rem);
  filter: blur(2px);
}

/* NAME WHEN VISIBLE (triggered by JS) */
.about-name.is-visible {
  animation: nameShine 1.1s ease-out forwards;
}

@keyframes nameShine {
  0% {
    opacity: 0;
    transform: translateY(0.4rem);
    background-position: 0% 50%;
    filter: blur(2px);
  }
  60% {
    opacity: 1;
    background-position: 100% 50%;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    background-position: 80% 50%;
    filter: blur(0);
  }
}

.about-role {
  margin: 0;
  font-size: 0.9rem;
  color: #f0e6c0;
  opacity: 0.9;
  text-align: center;
}

/* Main title + intro */
.about-title {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0 0 0.75rem 0;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: #ffcc00;
}

.about-intro {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.6;
  margin: 0 0 0.75rem 0;
}

/* Bullet summary under intro */
.about-summary-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #f5f5f5;
}

.about-summary-list li {
  margin-bottom: 0.35rem;
}

/* ---------- QUICK STATS ---------- */

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #050505;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  border: 0.08rem solid rgba(255, 204, 0, 0.4);
  text-align: left;
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.7);
}

.stat-number {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffcc00;
  transform-origin: left bottom;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: #e6e6e6;
  opacity: 0.95;
}

/* count-up animation style */
.stat-number-counting {
  animation: statPop 0.6s ease-out;
}

@keyframes statPop {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  60% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ---------- GENERIC SECTION ---------- */

.about-section {
  margin-top: 2rem;
}

.about-section-title {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin: 0 0 1.25rem 0;
  color: #ffcc00;
}

/* ---------- STORY TEXT ---------- */

.about-story p {
  margin: 0 0 0.75rem 0;
  line-height: 1.7;
  font-size: 0.98rem;
}

/* ---------- WHAT I DO (SERVICES) ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: radial-gradient(circle at top left, #151515, #050505);
  border-radius: 1rem;
  padding: 1.25rem 1.4rem;
  border: 0.08rem solid rgba(255, 204, 0, 0.4);
  box-shadow: 0 1.1rem 2rem rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-icon {
  font-size: 1.4rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffcc00;
  color: #111111;
}

.service-title {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: #ffffff;
}

.service-text {
  margin: 0;
  font-size: 0.95rem;
  color: #e6e6e6;
}

/* ---------- HOW I WORK (PROCESS) ---------- */
/* Zig-zag glowing timeline with central spine and 3D cards */

.about-section--process {
  position: relative;
  padding-top: 0.5rem;
}

/* central vertical spine – start *below* the heading */
.about-section--process::before {
  content: "";
  position: absolute;
  top: 2.6rem;          /* moved down so it no longer crosses "HOW I WORK" */
  bottom: 0.6rem;
  left: 50%;
  width: 0.12rem;
  transform: translateX(-50%);
  background: linear-gradient(#ffcc00, rgba(255, 204, 0, 0));
  opacity: 0.8;
}

/* grid just to manage gaps; cards are positioned via margins */
.process-grid {
  position: relative;
  display: grid;
  gap: 1.4rem;
}

/* base card style */
.process-card {
  position: relative;
  max-width: 26rem;
  padding: 1.1rem 1.4rem 1.2rem;
  border-radius: 1.2rem;
  border: 0.08rem solid rgba(255, 204, 0, 0.6);
  background: radial-gradient(circle at top left, #191919, #050505);
  box-shadow:
    0 1.4rem 2.3rem rgba(0, 0, 0, 0.95),
    0 0 0.4rem rgba(255, 204, 0, 0.28);
  overflow: hidden;
}

/* left / right zig-zag alignment */
.process-card:nth-child(odd) {
  margin-right: auto;
  padding-left: 3.1rem;
}
.process-card:nth-child(even) {
  margin-left: auto;
  padding-right: 3.1rem;
}

/* faint glow trail from the spine to the card */
.process-card::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 3rem;
  height: 0.13rem;
  background: linear-gradient(
    to var(--trail-direction, right),
    rgba(255, 204, 0, 0.9),
    transparent
  );
  opacity: 0.75;
  pointer-events: none;
}

.process-card:nth-child(odd)::before {
  right: 100%;
  transform: translateY(-50%);
  --trail-direction: left;
}

.process-card:nth-child(even)::before {
  left: 100%;
  transform: translateY(-50%);
  --trail-direction: right;
}

/* (step-number styles kept, but you’re not using them in HTML now) */
.process-step-number {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999rem;
  background: radial-gradient(circle at 30% 20%, #fffad2, #ffcc00, #d48c00);
  color: #111111;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0.35rem 0.9rem rgba(0, 0, 0, 0.85),
    0 0 0.11rem rgba(255, 255, 255, 0.7);
  z-index: 1;
}

.process-card:nth-child(odd) .process-step-number {
  left: -1.3rem;
}
.process-card:nth-child(even) .process-step-number {
  right: -1.3rem;
}

/* card content */
.process-step-body {
  position: relative;
  z-index: 1;
}

.process-step-label {
  margin: 0 0 0.25rem 0;
  font-size: 0.75rem;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  color: rgba(255, 204, 0, 0.9);
  opacity: 0.9;
}

.process-step-title {
  margin: 0 0 0.25rem 0;
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.11rem;
  color: #ffffff;
}

.process-step-text {
  margin: 0;
  font-size: 0.95rem;
  color: #e6e6e6;
}

/* subtle hover animation on desktop */
@media (hover: hover) {
  .process-card {
    transition:
      transform 0.18s ease-out,
      box-shadow 0.18s ease-out,
      border-color 0.18s ease-out;
  }

  .process-card:hover {
    transform: translateY(-0.16rem);
    box-shadow:
      0 1.9rem 2.9rem rgba(0, 0, 0, 1),
      0 0 0.55rem rgba(255, 204, 0, 0.38);
    border-color: rgba(255, 221, 130, 0.9);
  }
}

/* ---------- PROCESS: RESPONSIVE TWEAKS ---------- */

@media (max-width: 48rem) {
  .about-section--process::before {
    /* move spine to the left on mobile and soften */
    left: 1.8rem;
    transform: none;
    opacity: 0.65;
  }

  .process-card,
  .process-card:nth-child(odd),
  .process-card:nth-child(even) {
    margin: 0 0 0 2.2rem;
    max-width: 100%;
    padding: 1rem 1.2rem 1.1rem 2.9rem;
  }

  .process-card::before {
    display: none; /* hide horizontal trail on small screens */
  }

  .process-step-number {
    left: -1.4rem;
    right: auto;
  }
}

/* ---------- HIGHLIGHTS (TECH / SKILLS / LANGUAGE) ---------- */
/* Three connected 3D-ish cards on a glowing track */

.about-highlights {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.6rem;
  align-items: stretch;
}

/* glowing horizontal track behind cards */
.about-highlights::before {
  content: "";
  position: absolute;
  top: 0.95rem;
  left: 5%;
  right: 5%;
  height: 0.12rem;
  border-radius: 999rem;
  background:
    radial-gradient(circle at 10% 50%, rgba(255, 204, 0, 0.12), transparent 60%),
    linear-gradient(
      90deg,
      rgba(255, 204, 0, 0.1),
      rgba(255, 204, 0, 0.7),
      rgba(255, 204, 0, 0.1)
    );
  opacity: 0.85;
  pointer-events: none;
}

.highlight-card {
  position: relative;
  border-radius: 1.2rem;
  padding: 1.4rem 1.3rem 1.2rem;
  overflow: hidden;
  border: 0.09rem solid rgba(255, 204, 0, 0.45);
  box-shadow:
    0 1.3rem 2.4rem rgba(0, 0, 0, 0.95),
    0 0 0.45rem rgba(0, 0, 0, 0.9);
  transform-style: preserve-3d;
  backdrop-filter: blur(0.1rem);
}

/* base glass layer */
.highlight-card::before {
  content: "";
  position: absolute;
  inset: 0.12rem;
  border-radius: inherit;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 55%);
  opacity: 0.8;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* subtle "floor" shadow for 3D feel */
.highlight-card::after {
  content: "";
  position: absolute;
  inset-inline: 15%;
  bottom: -1.05rem;
  height: 1.7rem;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9), transparent 70%);
  z-index: -1;
}

/* different vibes for each card */
.highlight-card:nth-child(1) {
  background: radial-gradient(circle at top left, #141414, #050505);
}
.highlight-card:nth-child(2) {
  background: radial-gradient(circle at top, #22172a, #050509);
  border-color: rgba(255, 204, 0, 0.6);
}
.highlight-card:nth-child(3) {
  background: radial-gradient(circle at bottom, #141e1a, #040806);
  border-color: rgba(255, 204, 0, 0.5);
}

/* thin glowing strip inside each card (aligned with track) */
.highlight-card-header {
  position: absolute;
  inset-inline: 1.1rem;
  top: 0.95rem;
  height: 0.16rem;
  border-radius: 999rem;
  background: linear-gradient(
    90deg,
    rgba(255, 204, 0, 0.75),
    rgba(255, 255, 255, 0.8),
    rgba(255, 204, 0, 0.75)
  );
  opacity: 0.9;
}

/* actual title & content */
.highlight-title {
  position: relative;
  margin: 1.1rem 0 0.75rem 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  color: #ffcc00;
}

.highlight-pill-grid {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.highlight-pill {
  padding: 0.28rem 0.8rem;
  border-radius: 999rem;
  font-size: 0.78rem;
  border: 0.06rem solid rgba(255, 204, 0, 0.7);
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0.4rem 0.9rem rgba(0, 0, 0, 1);
}

/* slight hover / lift */
@media (hover: hover) {
  .highlight-card {
    transition:
      transform 0.18s ease-out,
      box-shadow 0.18s ease-out,
      border-color 0.18s ease-out;
  }

  .highlight-card:hover {
    transform: translateY(-0.18rem);
    box-shadow:
      0 1.8rem 2.8rem rgba(0, 0, 0, 1),
      0 0 0.6rem rgba(255, 204, 0, 0.32);
    border-color: rgba(255, 221, 130, 0.9);
  }
}

/* ---------- CODE EDITOR STYLE CARD ---------- */

.about-code-card {
  margin-top: 1.5rem;
  background: #050505;
  border-radius: 1rem;
  border: 0.08rem solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.7);
  font-family: "SF Mono", "Roboto Mono", ui-monospace, Menlo, monospace;
}

.about-code-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(90deg, #111111, #1d1d1d);
  border-bottom: 0.05rem solid rgba(255, 255, 255, 0.1);
}

.code-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  display: inline-block;
}

.code-dot-red {
  background-color: #ff5f57;
}

.code-dot-yellow {
  background-color: #febc2e;
}

.code-dot-green {
  background-color: #28c840;
}

.code-filename {
  margin-left: auto;
  font-size: 0.8rem;
  color: #bbbbbb;
}

.about-code-block {
  margin: 0;
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #e4e4e4;
  background: radial-gradient(circle at top left, #202020, #050505);
  overflow-x: auto;
}

.about-code-block code {
  display: block;
  white-space: pre;
}

/* ---------- SKILL BARS ---------- */

.about-skill-bars {
  margin-top: 0.5rem;
}

.skill-bar {
  margin-bottom: 1rem;
}

.skill-bar__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: #f5f5f5;
}

.skill-label {
  font-weight: 500;
}

.skill-bar__track {
  position: relative;
  height: 0.45rem;
  border-radius: 999rem;
  background: #222222;
  overflow: hidden;
}

.skill-bar__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffcc00, #ff8800);
  transform-origin: left;
  transform: scaleX(1);
}

/* ---------- TESTIMONIALS ---------- */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.testimonial-card {
  background: radial-gradient(circle at top left, #141414, #050505);
  border-radius: 1rem;
  padding: 1.2rem 1.3rem;
  border: 0.08rem solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1.1rem 2.1rem rgba(0, 0, 0, 0.8);
}

.testimonial-quote {
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
}

.testimonial-name {
  margin: 0;
  font-size: 0.9rem;
  color: #ffcc00;
}

/* ---------- CTA: LET’S BUILD SOMETHING TOGETHER ---------- */

.about-cta {
  margin-top: 2.8rem;
}

.about-cta-box {
  border-radius: 1.4rem;
  border: 0.11rem solid rgba(255, 204, 0, 0.7);
  padding: 2rem 2.2rem;
  background: radial-gradient(circle at top left, #f4c64f, #f6b83c, #f7a623);
  box-shadow: 0 1.6rem 3rem rgba(0, 0, 0, 0.9);
}

.about-cta-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.about-cta-text-block {
  max-width: 32rem;
}

.about-cta-title {
  margin: 0 0 0.75rem 0;
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: #111111;
  opacity: 0;
  transform: translateY(0.4rem);
}

/* CTA TITLE WHEN VISIBLE */
.about-cta-title.is-visible {
  animation: ctaPulse 0.7s ease-out forwards;
}

@keyframes ctaPulse {
  0% {
    opacity: 0;
    transform: translateY(0.4rem) scale(0.96);
  }
  60% {
    opacity: 1;
    transform: translateY(-0.1rem) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.about-cta-text {
  margin: 0 0 1.25rem 0;
  font-size: 0.98rem;
  color: #111111;
}

/* CTA list bullets */
.about-cta-box ul {
  list-style: none;
  margin: 0 0 1.4rem 0;
  padding: 0;
}

.about-cta-box ul li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: #111111;
  letter-spacing: 0.02rem;
}

.about-cta-box ul li::before {
  content: "●";
  position: absolute;
  left: 0.55rem;
  top: 0.18rem;
  font-size: 0.7rem;
  color: #000000;
  text-shadow:
    0 0 0.2rem rgba(255, 255, 255, 0.6),
    0 0 0.45rem rgba(255, 204, 0, 0.9);
}

/* CTA buttons + pills */

.about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.about-cta-button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999rem;
  background: #000000;
  color: #ffcc00;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.about-cta-button:hover {
  transform: translateY(-0.15rem);
  box-shadow: 0 0.9rem 1.8rem rgba(0, 0, 0, 0.9);
  background: #111111;
}

.about-cta-link {
  font-size: 0.95rem;
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.about-cta-taglist {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.about-cta-tag {
  padding: 0.3rem 0.8rem;
  border-radius: 999rem;
  font-size: 0.82rem;
  border: 0.06rem solid rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.12);
}

/* ---------- TYPING EFFECT (shared desktop + mobile) ---------- */

.typing-active {
  position: relative;
}

/* Blinking caret */
.typing-active::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 1em;
  margin-left: 0.08em;
  vertical-align: -0.1em;
  background-color: #ffcc00;
  animation: caretBlink 0.7s steps(1) infinite;
}

.typing-done::after {
  animation: caretFadeOut 0.3s forwards;
}

@keyframes caretBlink {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

@keyframes caretFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 56rem) {
  .about-container {
    padding: 3rem 5vw;
  }

  .about-content {
    padding: 2rem 1.75rem;
  }

  .about-header {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

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

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

@media (max-width: 40rem) {
  .about-container {
    padding: 2.5rem 5vw;
  }

  .about-content {
    padding: 1.75rem 1.25rem;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  /* TECH / SOFT SKILLS / LANGUAGES – full-width 3D cards on mobile */
  .about-highlights {
    grid-template-columns: 1fr;
    margin-top: 1.75rem;
  }

  .highlight-card {
    padding: 1rem 1.1rem;
  }

  .highlight-title {
    font-size: 0.9rem;
    letter-spacing: 0.09rem;
  }

  .highlight-pill-grid {
    gap: 0.4rem;
  }

  .highlight-pill {
    font-size: 0.78rem;
  }

  .about-cta-box {
    padding: 1.5rem 1.5rem;
  }

  .about-header {
    gap: 1.25rem;
  }

  .about-profile-photo {
    width: 7.5rem;
    height: 7.5rem;
  }

  .about-cta-main {
    flex-direction: column;
  }

  /* timeline adjustments for narrow screens */
  .about-section--process::before {
    left: 1.55rem;
  }

  .process-card {
    margin-left: 1.4rem;
    padding-left: 1.5rem;
  }
}