/* ================================================================
   layout.css — Page structure & section layouts
   ================================================================
   EDIT THIS FILE WHEN:
   - You want to change the navbar height / padding
   - You want to adjust section spacing / padding
   - You want to change grid column counts
   - You want to modify the footer

   TABLE OF CONTENTS:
   1.  Shared Section Styles
   2.  Navigation Bar
   3.  Hero Section
   4.  About Section
   5.  Skills Section
   6.  Projects Section
   7.  Connect Section
   8.  Footer
   ================================================================ */

/* ----------------------------------------------------------------
   1. SHARED SECTION STYLES
   ---------------------------------------------------------------- */
section {
  position: relative;
  z-index: var(--z-content);
  padding: 5rem var(--space-xl);
}

/* Small label above section titles e.g. "// who I am" */
.section-label {
  color: var(--color-text-dim);
  font-size: 0.82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

/* Main section heading */
.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  display: inline-block;
  margin-bottom: 3rem;
}

/* Gradient underline beneath section title */
.section-title::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--color-cyan), transparent);
}

/* ----------------------------------------------------------------
   2. NAVIGATION BAR
   ---------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 4rem; /* ← change padding to adjust nav height */
  background: rgb(0, 0, 0);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  z-index: var(--z-nav);
  animation: slideDown 0.8s ease both;
}

.navbar__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar__links {
  display: flex;
  gap: 2.5rem;
}

.navbar__link {
  color: #aaa;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  transition: color var(--transition-normal);
}

/* Sliding underline on hover / active */
.navbar__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-cyan);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.navbar__link:hover,
.navbar__link.is-active {
  color: var(--color-cyan);
}

.navbar__link:hover::after,
.navbar__link.is-active::after {
  transform: scaleX(1);
}

/* ----------------------------------------------------------------
   3. HERO SECTION
   ---------------------------------------------------------------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero__text {
  display: flex;
  flex-direction: column;
}

.hero__label {
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    var(--color-cyan) 40%,
    var(--color-purple) 80%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero__typed-wrapper {
  margin-top: 1.5rem;
  font-size: 1.4rem;
  color: #08cf16;
  font-weight: 800;
  letter-spacing: 1px;
  min-height: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.7s forwards;
}

.hero__desc {
  margin-top: 1.2rem;
  max-width: 500px;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.9s forwards;
}

.hero__buttons {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.1s forwards;
}

/* ── Flip Card ─────────────────────────────────────────────── */
.hero__card-wrapper {
  perspective: 1200px;
  width: 100%;
  max-width: 380px;
  height: 480px;
  margin: 0 auto;
  cursor: pointer;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.hero__card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.hero__card.is-flipped {
  transform: rotateY(180deg);
}

.hero__card-front,
.hero__card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

/* Front — photo */
.hero__card-front {
  background: #0a0a1a;
}

.hero__card-img-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Gradient overlay on photo bottom */
.hero__card-front::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  pointer-events: none;
}

/* Back — terminal */
.hero__card-back {
  background: #0d1117;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
}

/* Hint text at bottom of card */
.hero__card-hint {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(0, 245, 255, 0.5);
  letter-spacing: 1px;
  z-index: 3;
}

/* ── Terminal styles ───────────────────────────────────────── */
.hero__terminal {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  line-height: 1.7;
}

.hero__terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: #161b22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.t-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.t-red {
  background: #ff5f57;
}
.t-yellow {
  background: #febc2e;
}
.t-green {
  background: #28c840;
}

.t-filename {
  margin-left: 0.5rem;
  color: #8b949e;
  font-size: 0.75rem;
}

.hero__terminal-body {
  padding: 1rem 1.2rem 2.5rem;
  overflow-y: auto;
  flex: 1;
  color: #c9d1d9;
}

.hero__terminal-body p {
  margin: 0;
}

.t-comment {
  color: #6a737d;
  font-style: italic;
}
.t-key {
  color: #ff7b72;
}
.t-var {
  color: #79c0ff;
}
.t-str {
  color: #a5d6ff;
}
.t-output {
  color: #28c840;
  font-weight: bold;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

/* Glow border on card hover */
.hero__card-wrapper:hover .hero__card-front,
.hero__card-wrapper:hover .hero__card-back {
  border-color: rgba(0, 245, 255, 0.5);
  box-shadow: 0 0 40px rgba(0, 245, 255, 0.15);
}
/* ----------------------------------------------------------------
   4. ABOUT SECTION
   ---------------------------------------------------------------- */
.about {
  background: rgba(255, 255, 255, 0.01);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about__text p {
  color: #dae5fb;
  line-height: 1.9;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.about__text p strong {
  color: #fff;
}

/* 2x2 stat cards grid */
.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition:
    transform var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

/* Top-edge glow sweep on hover */
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-cyan),
    transparent
  );
  transform: scaleX(0);
  transition: transform var(--transition-slow);
}

.stat-card:hover::before {
  transform: scaleX(1);
}
.stat-card:hover {
  border-color: rgba(0, 245, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 245, 255, 0.1);
}

.stat-card__number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-cyan);
}

.stat-card__label {
  font-size: 0.82rem;
  color: var(--color-text-dim);
  letter-spacing: 1px;
  margin-top: 0.3rem;
}

/* ----------------------------------------------------------------
   5. SKILLS SECTION
   ---------------------------------------------------------------- */
/* Responsive grid — auto-fills columns at ≥280px each */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition:
    transform var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
}

.skill-card:hover {
  border-color: rgba(0, 245, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.08);
  transform: translateY(-4px);
}

.skill-card__heading {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.skill-card__heading .icon {
  font-size: 1.2rem;
}

/* Individual skill row */
.skill-item {
  margin-bottom: 1.2rem;
}

.skill-item__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: #ccd;
  margin-bottom: 0.4rem;
}

.skill-item__bar-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

/* Width is set inline in index.html (e.g. style="--fill:90%") */
.skill-item__bar-fill {
  height: 100%;
  width: var(--fill, 0%);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s ease 0.3s;
}

/* JS adds this class when the card enters viewport */
.skill-item__bar-fill.is-animated {
  transform: scaleX(1);
}

/* ----------------------------------------------------------------
   6. PROJECTS SECTION
   ---------------------------------------------------------------- */
/* Responsive grid — auto-fills columns at ≥340px each */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-md);
}

.project-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-slow),
    border-color var(--transition-slow),
    box-shadow var(--transition-slow);
}

/* Gradient overlay that fades in on hover */
.project-card::before {
  pointer-events: none;
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.04),
    rgba(180, 0, 255, 0.04)
  );
  transition: opacity var(--transition-slow);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  border-color: rgba(0, 245, 255, 0.5);
  transform: translateY(-6px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(0, 245, 255, 0.1);
}

/* Faded number in top-right corner */
.project-card__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(0, 245, 255, 0.07);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.project-card__tags {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-card__title {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.8rem;
}

.project-card__desc {
  position: relative;
  z-index: 2;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.project-card__links {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-card__link {
  color: var(--color-cyan);
  font-size: 0.85rem;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: var(--radius-sm);
  transition:
    background var(--transition-normal),
    border-color var(--transition-normal),
    transform var(--transition-normal);
}

.project-card__link:hover {
  background: rgba(0, 245, 255, 0.08);
  border-color: var(--color-cyan);
  transform: translateX(3px);
}

/* ----------------------------------------------------------------
   7. CONNECT SECTION
   ---------------------------------------------------------------- */
.connect {
  text-align: center;
  padding: 6rem 4rem;
}

.connect__desc {
  color: var(--color-text-dim);
  margin-top: 1rem;
  font-size: 1.1rem;
  max-width: 500px;
  margin-inline: auto;
  line-height: 1.7;
}

.connect__grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

/* Individual social platform card */
.social-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 3rem;
  color: #aaa;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  min-width: 160px;
  transition:
    transform var(--transition-slow),
    border-color var(--transition-slow),
    box-shadow var(--transition-slow),
    color var(--transition-slow);
}

.social-card:hover {
  transform: translateY(-8px);
}

.social-card__icon {
  font-size: 2.2rem;
}

.social-card__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ── Platform-specific hover colours ──────────────────────────
   To add a new platform, copy the pattern below.
   1. Add class="social-card your-platform" in index.html
   2. Add a hover rule here with the platform's brand color
   ──────────────────────────────────────────────────────────── */
.social-card--github:hover {
  border-color: #0a8318;
  box-shadow: 0 20px 40px rgba(184, 236, 175, 0.1);
  color: #0a8318;
}

.social-card--linkedin:hover {
  border-color: #288ef4;
  box-shadow: 0 20px 40px rgba(174, 213, 252, 0.3);
  color: #288ef4;
}

.social-card--leetcode:hover {
  border-color: var(--color-gold);
  box-shadow: 0 20px 40px rgba(255, 214, 10, 0.2);
  color: var(--color-gold);
}

.social-card--email:hover {
  border-color: var(--color-pink);
  box-shadow: 0 20px 40px rgba(255, 0, 110, 0.2);
  color: var(--color-pink);
}

/* ----------------------------------------------------------------
   8. FOOTER
   ---------------------------------------------------------------- */
.footer {
  text-align: center;
  padding: var(--space-md);
  font-size: 0.82rem;
  color: #cde4fc;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: var(--z-content);
}

.footer strong {
  color: var(--color-cyan);
}

/* ----------------------------------------------------------------
   EXPERIENCE / TIMELINE SECTION
   ---------------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(0, 245, 255, 0.4),
    rgba(180, 0, 255, 0.2)
  );
}
.timeline__item {
  position: relative;
  width: 43.5%;
  margin-bottom: 3rem;
}

/* Left items — sit on the left side */
.timeline__item:not(.timeline__item--right) {
  left: 0;
}

/* Right items — sit on the right side */
.timeline__item--right {
  left: 56.5%;
}

/* Dot on the centre line */
.timeline__dot {
  position: absolute;
  top: 1.2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #000;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal);
  z-index: 2;
}

/* Dot position for left items — on the right edge of the card */
/* Dot position for left items */
.timeline__item:not(.timeline__item--right) .timeline__dot {
  right: -78px;
}

/* Dot position for right items */
.timeline__item--right .timeline__dot {
  left: -78px;
}

.timeline__item:hover .timeline__dot,
.timeline__item--right:hover .timeline__dot {
  box-shadow: 0 0 35px rgba(0, 245, 255, 0.75);
  transform: scale(1.15);
}

.timeline__card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
}

.timeline__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-cyan),
    transparent
  );
  transform: scaleX(0);
  transition: transform var(--transition-slow);
  pointer-events: none;
}

.timeline__item:hover .timeline__card::before {
  transform: scaleX(1);
}

.timeline__item:hover .timeline__card {
  border-color: rgba(0, 245, 255, 0.45);
  transform: translateY(-4px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(0, 245, 255, 0.08);
}

.timeline__date {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.timeline__role {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.timeline__company {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.timeline__company i {
  color: var(--color-purple);
  font-size: 0.78rem;
}

.timeline__points {
  list-style: none;
  margin-bottom: 1.1rem;
  padding: 0;
}

.timeline__points li {
  font-size: 0.88rem;
  color: #8899bb;
  line-height: 1.7;
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.4rem;
}

.timeline__points li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--color-cyan);
}

.timeline__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Responsive: single column on mobile ── */
@media (max-width: 768px) {
  .timeline::before {
    left: 24px;
  }

  .timeline__item,
  .timeline__item--right {
    width: 100%;
    left: 0;
    padding-left: 60px;
  }

  .timeline__item:not(.timeline__item--right) .timeline__dot,
  .timeline__item--right .timeline__dot {
    left: 0;
    right: auto;
    transform: none;
  }

  .timeline__item:hover .timeline__dot,
  .timeline__item--right:hover .timeline__dot {
    transform: scale(1.15);
  }
}
.hero__card-wrapper {
  perspective: 1200px;
  width: 100%;
  max-width: 380px;
  height: 480px;
  margin: 0 auto;
  cursor: pointer;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.hero__card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.hero__card.is-flipped {
  transform: rotateY(180deg);
}

.hero__card-front,
.hero__card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.hero__card-front {
  background: #0a0a1a;
}

.hero__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero__card-front::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  pointer-events: none;
}

.hero__card-back {
  background: #0d1117;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
}

.hero__card-hint {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(0, 245, 255, 0.5);
  letter-spacing: 1px;
  z-index: 3;
  font-family: var(--font-body);
}

.hero__terminal {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  line-height: 1.7;
}

.hero__terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: #161b22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.t-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.t-red {
  background: #ff5f57;
}
.t-yellow {
  background: #febc2e;
}
.t-green {
  background: #28c840;
}

.t-filename {
  margin-left: 0.5rem;
  color: #8b949e;
  font-size: 0.75rem;
}

.hero__terminal-body {
  padding: 1rem 1.2rem 2.5rem;
  overflow-y: auto;
  flex: 1;
  color: #c9d1d9;
}

.hero__terminal-body p {
  margin: 0;
}

.t-comment {
  color: #6a737d;
  font-style: italic;
}
.t-key {
  color: #ff7b72;
}
.t-var {
  color: #79c0ff;
}
.t-str {
  color: #a5d6ff;
}
.t-output {
  color: #28c840;
  font-weight: bold;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

.hero__card-wrapper:hover .hero__card-front,
.hero__card-wrapper:hover .hero__card-back {
  border-color: rgba(0, 245, 255, 0.5);
  box-shadow: 0 0 40px rgba(0, 245, 255, 0.15);
}
/* ── Hero Flip Card ──────────────────────────────────────── */
.hero__card-wrapper {
  perspective: 1200px;
  width: 100%;
  max-width: 380px;
  height: 480px;
  margin: 0 auto;
  cursor: pointer;
}

.hero__card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.hero__card.is-flipped {
  transform: rotateY(180deg);
}

.hero__card-front,
.hero__card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 245, 255, 0.3);
}

.hero__card-front {
  background: #0a0a1a;
}

.hero__card-img-wrap {
  width: 100%;
  height: 100%;
}

.hero__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero__card-front::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  pointer-events: none;
}

.hero__card-back {
  background: #0d1117;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
}

.hero__card-hint {
  position: absolute;
  bottom: 0.8rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(0, 245, 255, 0.5);
  letter-spacing: 1px;
  z-index: 3;
}

.hero__card-wrapper:hover .hero__card-front,
.hero__card-wrapper:hover .hero__card-back {
  border-color: rgba(0, 245, 255, 0.6);
  box-shadow: 0 0 35px rgba(0, 245, 255, 0.2);
}

/* Terminal styles */
.hero__terminal {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  line-height: 1.7;
}

.hero__terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: #161b22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.t-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.t-red {
  background: #ff5f57;
}
.t-yellow {
  background: #febc2e;
}
.t-green {
  background: #28c840;
}

.t-filename {
  margin-left: 0.5rem;
  color: #13c347;
  font-size: 0.75rem;
}

.hero__terminal-body {
  padding: 1rem 1.2rem 2.5rem;
  overflow-y: auto;
  flex: 1;
  color: #0ab00f;
}

.hero__terminal-body p {
  margin: 0;
}
.t-comment {
  color: #6a737d;
  font-style: italic;
}
.t-key {
  color: #ff7b72;
}
.t-var {
  color: #79ffb3;
}
.t-str {
  color: #eefe07;
  font-size: 1 rem;
}
.t-output {
  color: #28c840;
  font-weight: bold;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}
