:root {
    --primary: #00b894;
    --primary-dark: #009170;
    --primary-soft: #e2fbf6;
    --text-main: #081c24;
    --text-muted: #6b7280;
    --bg: #f6f8fb;
    --card-bg: #ffffff;
    --border-subtle: #e5e7eb;
    --radius-lg: 1.2rem;
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
  }
  img { max-width: 100%; display: block; }
  a { text-decoration: none; color: inherit; }

  .container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
  }

  section { scroll-margin-top: 90px; }

  /* HEADER */
  .header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 248, 251, 0.98);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.4);
  }
  .header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .logo {
      font-weight: 700;
      color: var(--primary-dark);
      border: 1px solid #ccc;
      border-radius: 48px;
      padding: 7px;
      width: 44px;
      height: 44px;
      font-size: 19px;
      line-height: 25px;
  }
  .logo span {
    color: var(--text-main);
    font-weight: 500;
    font-size: 13px;
    display: block;
  }

  .nav {
    display: flex;
    gap: 18px;
    font-size: 14px;
    flex-wrap: wrap;
  }
  .nav a {
    position: relative;
    color: var(--text-muted);
    cursor: pointer;
    padding-bottom: 2px;
  }
  .nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
    transition: width 0.2s;
  }
  .nav a:hover {
    color: var(--primary-dark);
  }
  .nav a:hover::after {
    width: 18px;
  }
  .nav .btn-nav {
    padding: 7px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 184, 148, 0.5);
  }
  .nav .btn-nav::after { display: none; }

  @media (max-width: 780px) {
    .header-inner { flex-direction: column; align-items: flex-start; }
  }

  /* HERO */
  .hero {
    background: #ffffff;
  }
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .75fr);
    gap: 40px;
    align-items: stretch;
    padding: 50px 0 60px;
    position: relative;
    overflow: hidden;
  }
  @media (max-width: 960px) {
    .hero-inner { grid-template-columns: minmax(0, 1fr); }
  }

  .hero-left-wrap {
    background: var(--primary);
    border-radius: 1.8rem;
    padding: 32px 28px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
  }
  .hero-left-wrap::before {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 140px;
    height: 140px;
    border-radius: 32px;
    border: 4px solid rgba(255, 255, 255, 0.25);
    opacity: 0.35;
  }
  .hero-left-wrap::after {
    content: "";
    position: absolute;
    right: 40px;
    bottom: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.24), transparent 65%);
    opacity: 0.45;
  }

  .hero-left {
    position: relative;
    z-index: 1;
  }

  .hero-kicker {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 10px;
  }
  .hero-title {
    font-size: clamp(28px, 3.2vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 6px;
  }
  .hero-title span { color: #eafff8; }
  .hero-role {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 16px;
  }
  .hero-text {
    font-size: 13px;
    opacity: 0.9;
    max-width: 430px;
    margin-bottom: 20px;
  }

  .hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
  }
  .btn-primary {
    padding: 10px 22px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--primary-dark);
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
    transition: transform 0.18s, box-shadow 0.18s;
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  }
  .btn-outline {
    padding: 10px 18px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid rgba(229, 231, 235, 0.85);
    color: #f9fafb;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.18s, transform 0.18s, border-color 0.18s;
  }
  .btn-outline span.icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
  }
  .btn-outline:hover {
    background: rgba(4, 120, 87, 0.3);
    transform: translateY(-2px);
    border-color: #ffffff;
  }

  .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 12px;
    opacity: 0.9;
  }
  .hero-meta strong {
    color: #ffffff;
  }

  .hero-social {
    position: absolute;
    left: -48px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .hero-social a {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #ffffff;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background 0.15s, color 0.15s, transform 0.15s;
  }
  .hero-social a:hover {
    background: var(--primary-dark);
    color: #ffffff;
    transform: translateX(2px);
  }

  @media (max-width: 960px) {
    .hero-social { position: static; transform: none; flex-direction: row; margin-top: 14px; }
  }

  .hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-card {
    background: #ffffff;
    border-radius: 1.8rem;
    padding: 12px 12px 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    max-width: 360px;
    width: 100%;
    position: relative;
  }
  .hero-photo-frame {
    border-radius: 1.4rem;
    border: 1px solid #ccc;
    padding: 4px;
    margin-bottom: 14px;
  }
  .hero-photo {
    border-radius: 1.1rem;
    overflow: hidden;
  }
  .hero-photo img {
    height: 260px;
    width: 100%;
    object-fit: cover;
  }
  .hero-name {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 2px;
  }
  .hero-small-role {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
  }
  .hero-badges {
display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 10px;
    flex-direction: row;
  }
  .hero-badge-pill {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 500;
  }

  /* SECTION GENERIC */
  .section {
    padding: 60px 0;
  }
  .section-title-wrap {
    text-align: center;
    margin-bottom: 30px;
  }
  .section-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--primary-dark);
    margin-bottom: 5px;
  }
  .section-title {
    font-size: 24px;
    font-weight: 600;
  }
  .section-title span {
    color: var(--primary);
  }
  .section-sub {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 6px auto 0;
  }

  /* ABOUT */
  .about {
    background: var(--bg);
  }
  .about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
  }
  @media (max-width: 900px) {
    .about-grid { grid-template-columns: minmax(0, 1fr); }
  }
  .about-photo {
    max-width: 90%;
    width:100%;
    margin: 0 auto;
    border-radius: 1.5rem;
    padding: 10px;
    border: 2px solid var(--primary-soft);
  }
  .about-photo-inner {
    border-radius: 1.3rem;
    overflow: hidden;
  }
  .about-photo-inner img {
    width: 100%;
  }
  .about-text-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
  }
  .about-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
  }

  .skill-row-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 4px;
    color: var(--text-main);
  }
  .skill-bar {
    height: 7px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
    margin-bottom: 10px;
  }
  .skill-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transition: width 0.7s ease-out;
  }

  /* SERVICES */
  .services {
    background: #ffffff;
  }
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
  @media (max-width: 960px) {
    .services-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 640px) {
    .services-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  .service-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px 20px 22px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-subtle);
    font-size: 13px;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  }
  .service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 184, 148, 0.7);
    box-shadow: var(--shadow-soft);
  }
  .service-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 10px;
  }
  .service-title {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 15px;
  }
  .service-text {
    color: var(--text-muted);
    margin-bottom: 10px;
  }
  .service-tag {
    font-size: 12px;
    color: var(--primary-dark);
    font-weight: 500;
  }

  /* PROJECTS */
  .projects {
    background: var(--bg);
  }
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
  @media (max-width: 960px) {
    .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 640px) {
    .projects-grid { grid-template-columns: minmax(0, 1fr); }
  }
  .project-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 18px 18px 20px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    font-size: 13px;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  }
  .project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 184, 148, 0.7);
    box-shadow: var(--shadow-soft);
  }
  .project-label {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 5px;
  }
  .project-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
  }
  .project-text {
    color: var(--text-muted);
    margin-bottom: 8px;
  }
  .project-meta {
    color: var(--primary-dark);
    font-size: 12px;
    margin-bottom: 4px;
  }
  .project-link {
    font-size: 12px;
    color: var(--primary-dark);
    font-weight: 500;
  }

  /* EXPERIENCE TIMELINE */
  .experience {
    background: #ffffff;
  }
  .timeline {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    padding-left: 22px;
  }
  .timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(var(--primary), var(--primary-soft));
  }
  .timeline-item {
    position: relative;
    padding: 0 0 24px 26px;
  }
  .timeline-dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 3px solid var(--primary);
  }
  .timeline-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
  }
  .timeline-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
  }
  .timeline-text {
    font-size: 13px;
    color: var(--text-muted);
  }

  /* CERTIFICATES */
  .certs {
    background: var(--bg);
  }
  .certs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  @media (max-width: 768px) {
    .certs-grid { grid-template-columns: minmax(0, 1fr); }
  }
  .cert-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 18px 18px 16px;
    border: 1px dashed var(--border-subtle);
    box-shadow: var(--shadow-card);
    font-size: 13px;
  }
  .cert-title {
    font-weight: 600;
    margin-bottom: 4px;
  }
  .cert-org {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
  }
  .cert-card a {
    font-size: 12px;
    color: var(--primary-dark);
  }

  /* CTA */
  .cta {
    background: var(--primary);
    color: #ffffff;
    padding: 40px 0;
  }
  .cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }
  .cta-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
  }
  .cta-text {
    font-size: 13px;
    opacity: 0.9;
  }

  /* CONTACT */
  .contact {
    background: #ffffff;
    padding: 40px 0 30px;
    text-align: center;
    font-size: 14px;
  }
  .contact-email {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
  }
  .contact-links {
    margin-top: 10px;
    font-size: 13px;
  }
  .contact-links a {
    margin: 0 8px;
    color: var(--text-muted);
  }
  .contact-links a:hover {
    color: var(--primary-dark);
  }

  footer {
    background: #f1f5f9;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    padding: 10px 0 16px;
  }

  /* REVEAL ANIMATION */
  [data-animate] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 350ms ease-out, transform 350ms ease-out;
  }
  [data-animate].visible {
    opacity: 1;
    transform: translateY(0);
  }

 .profiles {
  background: #f9fafb;
}

/* EXACTLY 2 per row on desktop, full-width on mobile */
.profiles-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.profile-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.profile-logo {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
}

.profile-logo img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 100px;
  display: block;
}

.profile-content .profile-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.profile-content .profile-desc {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.4rem;
}

.profile-content a {
  font-size: 0.9rem;
  font-weight: 500;
}

.cert-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
}

.cert-logo {
  max-width: 120px;
  display: block;
  margin-bottom: 0.75rem;
}

.cert-profiles {
  margin-bottom: 2rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.cert-profiles a {
  text-decoration: none;
  font-weight: 500;
}


/* BURGER BUTTON */
.burger {
  width: 28px;
  height: 20px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 3px;
  background: #000;
  border-radius: 3px;
  transition: 0.3s ease;
}

/* MOBILE NAV BEHAVIOUR */
@media (max-width: 768px) {
  .header-inner {
    justify-content: space-between;
  }

  .hero-inner {
        display: flex;
        flex-direction: column-reverse;
   }
  .header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
}

  /* show burger on mobile */
  .burger {
    display: flex;
    z-index: 10001;
  }

  /* hide nav by default on mobile */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 240px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    padding: 80px 20px;
    flex-direction: column;
    gap: 18px;

    /* 👇 ANIMATION STATES */
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;

    z-index: 10000;
  }

  .nav.open {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }
}

/* BURGER CROSS ANIMATION */
.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
