@font-face {
  font-family: 'Lufga';
  src: url('path/to/lufga.woff2') format('woff2'),
    url('path/to/lufga.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Variables & Resets --- */
:root {
  --primary-orange: #FD853A;
  --light-orange: #FEB273;
  --dark-bg: #171717;
  --dark-gray: #344054;
  --text-light: #f9f9f9;
  --text-dark: #333333;

  /* Font Variables */
  --font-heading: 'Urbanist', sans-serif;
  --font-body: 'Lufga', sans-serif;
  /* Fallbacks to sans-serif if Lufga fails to load */
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Urbanist', sans-serif;
}

a {
  text-decoration: none;
}

.navbar {

  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  position: relative;
  width: 5vw;
  /* Set your desired width */
  height: 40px;
  /* Set your desired height */
  overflow: hidden;
}

/* Style both images to fill the container perfectly */
.logo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keeps images from looking stretched */
  transition: opacity 0.5s ease-in-out;
  /* Smooth fade effect */
}

.logo .img-front {
  opacity: 1;
  object-fit: contain;
  object-position: center;
  background: transparent;

}

.logo:hover .img-front {
  opacity: 0;
}

/* The hover image is hidden by default */
.logo .img-back {
  opacity: 0;
  object-fit: contain;
  object-position: center;
}

/* When hovering over the container, reveal the back image */
.logo:hover .img-back {
  opacity: 1;
}

.navbar {
  background-color: var(--dark-bg);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
  border-radius: 50px;
  margin: auto;
  width: fit-content;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  font-family: var(--font-body);
  align-items: center;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links li a {
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 20px;
  transition: background 0.3s ease;
  line-height: 1;
}

.nav-links li a.active,
.nav-links li a:hover {
  background-color: var(--primary-orange);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0px;
  padding: 0px;
  margin-bottom: -10px;
}

.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
}

.hero-visual-area {
  position: relative;
  width: 100%;
  min-height: 330px;
}

.intro-text {
  position: absolute;
  top: 50%;
  right: calc(50% + 170px);
  transform: translateY(-50%);
  max-width: 420px;
  color: #000000;
  font-family: 'Lufga', var(--font-body), sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.7;
  transition: transform 0.6s ease;
}

.right-highlights {
  position: absolute;
  top: 50%;
  left: calc(60% + 150px);
  transform: translateY(-50%);
  color: #000000;
  font-family: 'Lufga', var(--font-body), sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
  transition: transform 0.6s ease;
}

.gold-stars {
  color: #d4af37;
  font-size: 1.4rem;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.right-highlights p {
  margin: 0;
  margin-top: 0;
  bottom: 30px;

  border-radius: 0;
}



.badge {
  font-family: var(--font-body);
  border: 1px solid var(--dark-gray);
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 1.05rem;
  display: inline-block;
  margin-left: -25px;
  margin-top: 10px;

  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.badge:hover {
  background-color: var(--primary-orange);
  color: white;
  box-shadow: 0 10px 22px rgba(253, 133, 58, 0.35);
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
  transition: transform 1s ease;
}

.hero p {
  margin-bottom: 30px;
  max-width: 400px;
}

.hero span.name {
  color: var(--primary-orange);
}

.profile-container {
  position: relative;
  width: 300px;
  height: 330px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: visible;
}

.half-circle {
  position: absolute;
  bottom: 0;
  width: 300px;
  height: 150px;
  background-color: #FEB273;
  border-radius: 150px 150px 0 0;
  z-index: 0;
}

.profile-star {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200px;
  height: auto;
  transform: translate(-50%, -50%) scale(0.55);
  transform-origin: center;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.profile-photo {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 260px;
  height: auto;
  z-index: 2;
  margin: 0;
  transform: translateX(-50%) translateZ(0); /* fix android blur */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  transition: transform 0.3s ease;
}

.hire_me_button {
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 3;
}

.hire_me_button_link {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  padding: 8px 28px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.25s ease;
}

.arrow {
  font-size: 18px;
  line-height: 1;
}

.btn_portfolio {
  background-color: #FD853A;
}

.btn_hire {
  background-color: transparent;
}

.btn_hire:hover {
  background-color: #FD853A;
}

.hire_me_button:has(.btn_hire:hover) .btn_portfolio {
  background-color: transparent;
}

.hire_me_button_link:hover {
  transform: translateY(-1px);
}

.service-placeholder {
  width: 100%;
  padding: 60px 20px;
  background-color: #000;
  /* make placeholder background black */
  position: relative;
  overflow: hidden;
}

/* Background image cross-slide between two images on hover */
.service-placeholder {
  position: relative;
  overflow: hidden;
}

.service-placeholder::before,
.service-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Force images to exactly fit the placeholder bounds without overflowing */
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  /* slower, smoother transitions for a relaxed cross-slide */
  transition: transform 5s cubic-bezier(.22, .9, .32, 1), opacity 2s ease;
  will-change: transform, opacity;
  pointer-events: none;
  /* keep backgrounds non-interactive */
}

/* Default (image 1 visible) */
.service-placeholder::before {
  background-image: url('image/bg%20motion%201.png');
  transform: translateX(0%);
  z-index: 1;
  opacity: 1;
}

/* Off-screen to the right initially (image 2) */
.service-placeholder::after {
  background-image: url('image/bg%20motion%202.png');
  transform: translateX(100%);
  z-index: 2;
  opacity: 1;
}

/* Ensure the actual content sits above the background layers */
.service-placeholder>* {
  position: relative;
  z-index: 3;
}

/* When hovering anywhere in the placeholder, slide image1 out and bring image2 in */
.service-placeholder:hover::before {
  transform: translateX(-100%);
  opacity: 0.95;
}

.service-placeholder:hover::after {
  transform: translateX(0%);
  opacity: 1;
}

/* Small accessibility-safe prefers-reduced-motion fallback */
@media (prefers-reduced-motion: reduce) {

  .service-placeholder::before,
  .service-placeholder::after {
    transition: none;
  }
}

.services-section {
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  gap: 24px;
}

.services-title {
  font-size: 2rem;
  font-weight: 700;
}

.services-title span {
  color: var(--primary-orange);
}

.services-description {
  color: #cfcfcf;
  max-width: 520px;
  font-weight: 700;

}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.service-card {
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid var(--primary-orange);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 28px 24px 20px 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  transition: transform 0.35s ease, box-shadow 0.3s ease, background-color 0.35s ease, border-color 0.35s ease;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: #ffffff;
}

.mockup-container {
  width: 100%;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 12px;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 220px;
  overflow: hidden;
}

.mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  transition: transform 0.35s ease;
}

.card-btn {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 56px;
  height: 56px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background-color: rgba(20, 20, 20, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, background-color 0.25s ease;
  z-index: 10;
}

.card-btn svg {
  width: 20px;
  height: 20px;
}

.service-card:hover {
  transform: translateY(-8px);
  background: var(--primary-orange);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.service-card:hover .mockup-img {
  transform: scale(1.06);
}

.service-card:hover .card-btn {
  color: #ffffff;
  background: var(--primary-orange);
}

.service-card.active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.experience {
  width: 100%;
  padding: 90px 20px 70px;
  background: #ffffff;
}

.experience-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: #1d2a40;
}

.experience-title span {
  color: var(--primary-orange);
}

.timeline {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
  align-items: start;
  padding-bottom: 34px;
}

.tl-left {
  text-align: right;
  padding-right: 1.5rem;
  padding-top: 4px;
}

.tl-company,
.tl-role {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1d2a40;
  margin-bottom: 4px;
}

.tl-date {
  font-size: 0.9rem;
  color: #6f7785;
}

.tl-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
}

.tl-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px dashed var(--primary-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  z-index: 2;
  background: #ffffff;
}

.tl-dot.dark-dot {
  border-color: #1d2a40;
}

.tl-dot-inner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-orange);
}

.tl-dot.dark-dot .tl-dot-inner {
  background: #1d2a40;
}

.tl-line {
  flex: 1;
  width: 0;
  border-left: 2px dashed #d8dbe2;
  min-height: 52px;
  margin-top: 0;
}

.timeline-item-last .tl-line {
  display: none;
}

.tl-right {
  padding-left: 1.5rem;
  padding-top: 4px;
}

.tl-desc {
  font-size: 0.95rem;
  color: #5f6675;
  line-height: 1.7;
  max-width: 430px;
}

.timeline-item:hover .tl-company,
.timeline-item:hover .tl-role {
  color: var(--primary-orange);
}

.timeline-item:hover .tl-dot {
  transform: scale(1.04);
  box-shadow: 0 0 0 6px rgba(253, 133, 58, 0.12);
}

.cert-section {
  font-family: var(--font-heading);
  background:
    linear-gradient(rgba(15, 15, 19, 0.72), rgba(15, 15, 19, 0.72)),
    url("image/certificate bg.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 4rem 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  align-self: stretch;
  box-sizing: border-box;
}

@media (min-width: 901px) {
  .cert-section {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

.cert-inner {
  position: relative;
  z-index: 1;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.cert-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #FD853A55, #FD853A, #FD853A55, transparent);
}

.cert-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 2rem;
}

.cert-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #f9f9f9;
  letter-spacing: -0.02em;
}

.cert-header h2 span {
  color: var(--primary-orange);
}

.cert-header p {
  color: #667085;
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

.cert-hint {
  text-align: center;
  font-size: 0.78rem;
  color: #FD853A99;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  transition: opacity 0.4s;
}

.cert-hint.hidden {
  opacity: 0;
}

.cert-track-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: default;
}

.cert-rails {
  display: none;
}

.cert-track {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 2rem 2.5rem;
  width: max-content;
  will-change: transform;
}

.cert-card {
  width: 260px;
  min-height: 320px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid var(--accent, #FD853A);
  border-radius: 16px;
  padding: 0;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  z-index: 1;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 34px rgba(253, 133, 58, 0.24),
    0 0 72px rgba(253, 133, 58, 0.14);
}

.cert-card::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(253, 133, 58, 0.18), transparent 70%);
  filter: blur(18px);
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

.cert-card:hover {
  border-color: var(--accent, #FD853A);
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 42px rgba(253, 133, 58, 0.3),
    0 0 90px rgba(253, 133, 58, 0.18);
}

.cert-card-content {
  position: relative;
  z-index: 2;
  padding: 1.35rem 1.35rem 1rem;
}

.cert-card-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent, #FD853A);
  opacity: 0.04;
  top: -30px;
  right: -30px;
  filter: blur(30px);
  pointer-events: none;
}

.cert-card-image {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 0 1rem 1rem;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.14)),
    var(--cert-bg) center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.cert-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

.cert-issuer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.7rem;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
}

.cert-issuer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent, #FD853A);
  flex-shrink: 0;
}

.cert-name {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  min-height: 2.7em;
}

.cert-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cert-date {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
}

.cert-id {
  display: none;
}

.cert-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 1.4rem;
  opacity: 0;
  transition: opacity 0.2s;
  transform: translate(-50%, -50%);
}

.cert-cursor.visible {
  opacity: 1;
}

.cert-hint-mobile {
  display: none;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Mobile / Android layouts (projects, experience, certificates) ── */
@media (max-width: 900px) {

  /* ═══════════════════════════════════════════════════════
     PROJECT SECTION — Compact, Glassmorphic Cards
     ═══════════════════════════════════════════════════════ */
  .service-placeholder {
    padding: 32px 16px 40px;
  }

  /* kill the desktop cross-slide backgrounds on mobile for perf */
  .service-placeholder::before,
  .service-placeholder::after {
    background-size: cover;
  }

  .services-section .container {
    padding: 0 4px;
  }

  .services-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    gap: 8px;
  }

  .services-title {
    font-size: 1.5rem;
    letter-spacing: -0.01em;
  }

  .services-description {
    font-size: 0.85rem;
    max-width: 100%;
    line-height: 1.5;
    color: rgba(255,255,255,0.55);
  }

  /* 2-column compact grid for project cards */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 380px;
    margin: 0 auto 18px;
  }

  /* make the 3rd card span full width, centered */
  .services-grid .service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 184px;
    justify-self: center;
  }

  .service-card {
    min-height: auto;
    padding: 10px 10px 42px;
    border-radius: 14px;
    border-width: 1.5px;
    border-color: rgba(253, 133, 58, 0.45);
    background: linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.04) 100%
    );
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
      0 4px 20px rgba(0, 0, 0, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .service-card:active {
    transform: scale(0.97);
  }

  /* remove the desktop hover fly-up on mobile */
  .service-card:hover {
    transform: none;
    background: linear-gradient(
      155deg,
      rgba(253, 133, 58, 0.18) 0%,
      rgba(255, 255, 255, 0.06) 100%
    );
    border-color: var(--primary-orange);
    box-shadow:
      0 6px 28px rgba(253, 133, 58, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .card-title {
    font-size: 0.78rem;
    margin-bottom: 8px;
    line-height: 1.3;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .mockup-container {
    height: 90px;
    padding: 5px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mockup-img {
    border-width: 1.5px;
    border-radius: 6px;
  }

  .card-btn {
    width: 32px;
    height: 32px;
    bottom: 8px;
    right: 8px;
    border-width: 1.5px;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(253, 133, 58, 0.85);
    box-shadow: 0 4px 14px rgba(253, 133, 58, 0.3);
  }

  .card-btn svg {
    width: 13px;
    height: 13px;
  }

  .service-card:hover .card-btn {
    background: var(--primary-orange);
    color: #fff;
  }

  .carousel-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
  }

  .carousel-pagination .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    transition: all 0.3s ease;
  }

  .carousel-pagination .dot.active {
    background: var(--primary-orange);
    width: 20px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(253, 133, 58, 0.45);
  }

  /* ═══════════════════════════════════════════════════════
     EXPERIENCE SECTION — Scaled Down Desktop for Mobile
     ═══════════════════════════════════════════════════════ */
  .experience {
    padding: 60px 10px 40px;
  }

  .experience-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }

  .timeline-item {
    grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
    padding-bottom: 24px;
    column-gap: 0;
  }

  .tl-left {
    padding-right: 12px;
    padding-top: 2px;
  }

  .tl-right {
    padding-left: 12px;
    padding-top: 2px;
  }

  .tl-company,
  .tl-role {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }

  .tl-date {
    font-size: 0.8rem;
  }

  .tl-desc {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .tl-dot {
    width: 24px;
    height: 24px;
    border-width: 2px;
  }

  .tl-dot-inner {
    width: 10px;
    height: 10px;
  }

  .tl-line {
    min-height: 40px;
  }

  /* ═══════════════════════════════════════════════════════
     CERTIFICATES — (existing mobile polish)
     ═══════════════════════════════════════════════════════ */
  .cert-section {
    padding: 2.5rem 0 1.75rem;
  }

  .cert-header {
    margin-bottom: 1.25rem;
    padding: 0 1.25rem;
  }

  .cert-header h2 {
    font-size: 1.45rem;
  }

  .cert-header p {
    font-size: 0.82rem;
    margin-top: 0.35rem;
  }

  .cert-hint-desktop {
    display: none;
  }

  .cert-hint-mobile {
    display: inline;
  }

  .cert-track-wrapper {
    cursor: grab;
  }

  .cert-track {
    gap: 0.7rem;
    padding: 0.4rem 1rem 1.25rem;
  }

  .cert-card {
    width: clamp(138px, calc((100vw - 3.25rem) / 2.35), 168px);
    min-height: 228px;
    border-radius: 14px;
    background: linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.04)
    );
    border-width: 1.5px;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.05),
      0 8px 28px rgba(0, 0, 0, 0.35),
      0 0 24px color-mix(in srgb, var(--accent, #FD853A) 22%, transparent);
  }

  .cert-card:active {
    transform: scale(0.98);
  }

  .cert-card-content {
    padding: 0.85rem 0.85rem 0.6rem;
  }

  .cert-issuer-badge {
    font-size: 0.58rem;
    padding: 3px 8px;
    margin-bottom: 0.55rem;
    background: rgba(255, 255, 255, 0.14);
  }

  .cert-name {
    font-size: 0.8rem;
    min-height: auto;
    margin-bottom: 0.45rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .cert-date {
    font-size: 0.68rem;
  }

  .cert-card-image {
    margin: 0 0.65rem 0.65rem;
    min-height: 82px;
    border-radius: 10px;
  }
}



.hero-stack:has(.profile-container:hover) .hero {
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
  pointer-events: none;
}

.hero-stack:has(.profile-container:hover) .intro-text {
  transform: translateY(-78%);
}

.hero-stack:has(.profile-container:hover) .right-highlights {
  transform: translateY(-78%);
}

.hero {
  transition: transform 0.6s ease, opacity 0.6s ease;
}

@media (max-width: 900px) {
  /* Disable desktop hover effects on mobile to prevent Android blurring/glitches */
  .hero-stack:has(.profile-container:hover) .hero,
  .hero-stack:has(.profile-container:hover) .intro-text,
  .hero-stack:has(.profile-container:hover) .right-highlights {
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .hero-visual-area {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .intro-text {
    position: static;
    transform: none;
    max-width: 560px;
    text-align: center;
  }

  .right-highlights {
    position: static;
    transform: none;
    text-align: center;
  }

  .hire_me_button {
    bottom: -4px;
  }

  .hire_me_button_link {
    padding: 7px 18px;
    font-size: 0.92rem;
  }
}



.profile-container:hover .profile-star {
  animation: star-pop 1s ease-out forwards;
}

@keyframes star-pop {
  0% {
    transform: translate(-50%, -50%) scale(1.00);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -72%) scale(2.5);
    opacity: 1;
  }
}

.content {
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--dark-bg);
  border-radius: 20px;
}

.why-hire-section {
  width: 100%;
  padding: 80px 20px;
  background-color: #F2F4F7;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.why-hire-card {
  background: transparent;
  max-width: 900px;
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
}

/* ── LEFT: image blob ── */
.why-hire-image-wrap {
  flex-shrink: 0;
  position: relative;
  width: 280px;
  height: 340px;
  opacity: 0;
  top: -15px;
}

.why-hire-blob {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 240px;
  background: #F4943A;
  border-radius: 20% 30px;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.why-hire-image-wrap img:not(.why-hire-circle) {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 330px;
  width: auto;
  object-fit: cover;
  object-position: top;
  z-index: 2;
  border-radius: 0 0 24px 24px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.why-hire-circle {
  position: absolute;
  bottom: 90px;
  left: 50%;
  width: 265px;
  height: auto;
  z-index: 0;
  transform: translateX(-50%) scale(0);
  transform-origin: center center;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
  pointer-events: none;
}

.why-hire-image-wrap:hover .why-hire-circle {
  transform: translateX(-50%) scale(1.1);
  opacity: 1;
}

.why-hire-image-wrap:hover .why-hire-blob {
  transform: translateX(-50%) translateY(15px);
}

.why-hire-image-wrap:hover img:not(.why-hire-circle) {
  transform: translateX(-50%) translateY(15px);
}

/* placeholder silhouette when no real photo is provided */
.why-hire-placeholder-person {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.why-hire-image-wrap:hover .why-hire-placeholder-person {
  transform: translateX(-50%) translateY(15px);
}

.why-hire-placeholder-person .why-hire-head {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #d4956a;
}

.why-hire-placeholder-person .why-hire-body {
  width: 140px;
  height: 200px;
  background: #c27a46;
  border-radius: 70px 70px 10px 10px;
  margin-top: -10px;
}

/* ── RIGHT: content ── */
.why-hire-content {
  flex: 1;
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  opacity: 0;
}

.why-hire-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: #1e2d3d;
  line-height: 1.15;
  margin-bottom: 18px;
}

.why-hire-title span {
  color: #F4943A;
}

.why-hire-description {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #8a9ab5;
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 36px;
}

.why-hire-stats {
  display: flex;
  gap: 48px;
  margin-bottom: 40px;
}

.why-hire-stat {
  opacity: 0;
}

.why-hire-stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #1e2d3d;
}

.why-hire-stat-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #8a9ab5;
  margin-top: 4px;
}

.why-hire-btn {
  display: inline-block;
  padding: 16px 48px;
  border: 2px solid #1e2d3d;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #1e2d3d;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.2s, box-shadow 0.25s;
  text-decoration: none;
  width: fit-content;
  opacity: 0;
}

.why-hire-btn:hover {
  background: #F4943A;
  border-color: #F4943A;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244, 148, 58, 0.35);
}

/* ── entrance animations (triggered when .visible is added to section) ── */
.why-hire-section.visible .why-hire-image-wrap {
  animation: whyHireSlideLeft 0.7s cubic-bezier(.22, .9, .37, 1) both;
}

.why-hire-section.visible .why-hire-content {
  animation: whyHireSlideRight 0.7s 0.1s cubic-bezier(.22, .9, .37, 1) both;
}

.why-hire-section.visible .why-hire-stat {
  animation: whyHireFadeUp 0.5s ease both;
}

.why-hire-section.visible .why-hire-stat:nth-child(1) {
  animation-delay: 0.35s;
}

.why-hire-section.visible .why-hire-stat:nth-child(2) {
  animation-delay: 0.5s;
}

.why-hire-section.visible .why-hire-btn {
  animation: whyHireFadeUp 0.5s 0.6s ease both;
}

@keyframes whyHireSlideLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes whyHireSlideRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes whyHireFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── counter animation ── */
.why-hire-stat-number[data-target] {
  transition: none;
}

/* ── responsive ── */
@media (max-width: 640px) {
  .why-hire-card {
    flex-direction: column;
    padding: 40px 28px 40px;
    gap: 20px;
  }

  .why-hire-image-wrap {
    width: 220px;
    height: 260px;
  }

  .why-hire-blob {
    width: 190px;
    height: 240px;
  }

  .why-hire-image-wrap img {
    height: 255px;
  }

  .why-hire-title {
    font-size: 2rem;
  }
}

/* --- Footer & Contact Section --- */
.footer-section {
  width: 100%;
  background: #ffffff;
  padding: 100px 20px 50px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid #E4E7EC;
  display: flex;
  justify-content: center;
}

.footer-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 70px;
  max-width: 750px;
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
}

.footer-section.visible .footer-cta {
  opacity: 1;
  transform: translateY(0);
}

.footer-badge {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-orange);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  border: 1px solid rgba(253, 133, 58, 0.2);
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(253, 133, 58, 0.05);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: #1D2A40;
  line-height: 1.15;
  margin-bottom: 20px;
}

.footer-description {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: #667085;
  line-height: 1.7;
  margin-bottom: 40px;
}

.footer-linkedin-btn {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--primary-orange);
  border: 2px solid var(--primary-orange);
  padding: 16px 42px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(253, 133, 58, 0.25);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-linkedin-btn .btn-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.footer-linkedin-btn:hover {
  background-color: transparent;
  color: var(--primary-orange);
  box-shadow: 0 14px 30px rgba(253, 133, 58, 0.35);
  transform: translateY(-2px);
}

.footer-linkedin-btn:hover .btn-arrow {
  transform: translate(3px, -3px);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background-color: #E4E7EC;
  margin-bottom: 40px;
}

.footer-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.2s, opacity 0.8s ease 0.2s;
}

.footer-section.visible .footer-bottom {
  opacity: 1;
  transform: translateY(0);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #1D2A40;
  display: inline-block;
}

.logo-accent {
  color: var(--primary-orange);
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #667085;
}

.footer-socials {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid #D0D5DD;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475467;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-icon svg[stroke] {
  fill: none;
}

.social-icon:hover {
  border-color: var(--primary-orange);
  background-color: var(--primary-orange);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(253, 133, 58, 0.2);
}

.back-to-top {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #475467;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.back-to-top:hover {
  color: var(--primary-orange);
}

.back-to-top:hover svg {
  transform: translateY(-4px);
}

/* Responsiveness for Footer */
@media (max-width: 768px) {
  .footer-section {
    padding: 70px 20px 40px;
  }

  .footer-heading {
    font-size: 2.3rem;
  }

  .footer-cta {
    margin-bottom: 50px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 24px;
  }

  .footer-left {
    align-items: center;
  }
}

@media (max-width: 900px) {
  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }
}

/* ============================================================
   ANDROID / MOBILE OVERHAUL  (added — desktop styles untouched)
   Scoped entirely to max-width breakpoints.
   ============================================================ */

/* ---------- Tablet & phone (≤ 768px) ---------- */
@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  /* ---- NAVBAR: compact, wraps cleanly, logo hidden on small screens ---- */
  .navbar {
    width: calc(100% - 20px);
    max-width: 100%;
    margin: 10px auto;
    padding: 6px;
    border-radius: 30px;
  }

  .navbar nav {
    width: 100%;
  }

  .nav-links {
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .nav-links li a {
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: 16px;
  }

  /* Hide the center logo on mobile — it breaks the pill layout */
  .nav-links .logo {
    display: none;
  }

  /* ---- HERO ---- */
  .hero {
    padding: 24px 16px 8px;
    text-align: center;
  }

  .badge {
    margin-left: 0;
    margin-top: 0;
    padding: 6px 18px;
    font-size: 0.85rem;
  }

  .hero h1 {
    font-size: 2.2rem;
    margin-top: 14px;
    line-height: 1.15;
  }

  .hero p {
    font-size: 0.95rem;
    margin: 12px auto 0;
    padding: 0 8px;
  }

  /* ---- HERO VISUAL AREA: vertical stack, balanced ---- */
  .hero-visual-area {
    padding: 0 16px 24px;
    gap: 18px !important;
  }

  .intro-text {
    font-size: 1rem;
    line-height: 1.55;
    padding: 0 4px;
  }

  .right-highlights {
    font-size: 0.95rem;
  }

  .gold-stars {
    font-size: 1.15rem;
    letter-spacing: 2px;
    margin-bottom: 4px;
  }

  /* ---- PROFILE BLOB + BUTTONS ---- */
  .profile-container {
    width: 260px;
    height: 290px;
  }

  .half-circle {
    width: 260px;
    height: 130px;
  }

  .profile-photo {
    width: 225px;
  }

  .profile-star {
    width: 160px;
  }

  .hire_me_button {
    gap: 4px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.35);
    bottom: 4px;
  }

  .hire_me_button_link {
    padding: 7px 16px;
    font-size: 0.8rem;
  }

  .arrow {
    font-size: 14px;
  }

  /* ---- WHY HIRE: stack on tablet+phone (was only ≤640) ---- */
  .why-hire-section {
    padding: 56px 18px;
  }

  .why-hire-card {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .why-hire-image-wrap {
    width: 230px;
    height: 280px;
    margin: 0 auto;
    /* Make sure it's visible even if IntersectionObserver doesn't fire */
    opacity: 1;
  }

  .why-hire-blob {
    width: 200px;
    height: 220px;
  }

  .why-hire-image-wrap img:not(.why-hire-circle) {
    height: 270px;
  }

  .why-hire-circle {
    width: 220px;
    bottom: 70px;
  }

  .why-hire-content {
    opacity: 1;
    text-align: center;
  }

  .why-hire-title {
    font-size: 2rem;
  }

  .why-hire-description {
    font-size: 0.92rem;
    margin: 0 auto 28px;
    max-width: 100%;
  }

  .why-hire-stats {
    justify-content: center;
    gap: 36px;
    margin-bottom: 28px;
  }

  .why-hire-stat {
    opacity: 1;
  }

  .why-hire-stat-number {
    font-size: 1.7rem;
  }

  .why-hire-btn {
    padding: 14px 38px;
    font-size: 0.95rem;
    margin: 0 auto;
    opacity: 1;
  }

  /* ---- FOOTER tightening ---- */
  .footer-section {
    padding: 60px 18px 36px;
  }

  .footer-heading {
    font-size: 1.85rem;
  }

  .footer-description {
    font-size: 0.92rem;
    margin-bottom: 28px;
  }

  .footer-linkedin-btn {
    padding: 13px 28px;
    font-size: 0.95rem;
  }

  .footer-badge {
    font-size: 0.78rem;
    padding: 5px 12px;
  }
}

/* ---------- Small phones (≤ 420px) ---------- */
@media (max-width: 420px) {

  .nav-links li a {
    padding: 5px 9px;
    font-size: 0.72rem;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .profile-container {
    width: 230px;
    height: 260px;
  }

  .half-circle {
    width: 230px;
    height: 115px;
  }

  .profile-photo {
    width: 200px;
  }

  .hire_me_button_link {
    padding: 6px 13px;
    font-size: 0.74rem;
  }

  .intro-text {
    font-size: 0.95rem;
  }

  .footer-heading {
    font-size: 1.55rem;
  }

  .why-hire-title {
    font-size: 1.7rem;
  }

  .why-hire-stats {
    gap: 24px;
  }

  /* Projects: fall back to single column on tiny phones */
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  .services-grid .service-card:last-child:nth-child(odd) {
    max-width: none;
  }

  .card-title {
    font-size: 0.75rem;
  }

  .mockup-container {
    height: 100px;
  }

  /* Experience: tighten padding */
  .experience {
    padding: 40px 6px 30px;
  }
  
  .timeline-item {
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  }
  
  .tl-left, .tl-right {
    padding-left: 8px;
    padding-right: 8px;
  }

  .tl-company,
  .tl-role {
    font-size: 0.88rem;
  }

  .tl-desc {
    font-size: 0.78rem;
  }
}
