/*
  Sudev portfolio — rebuilt from the Sawad Framer clone.
  Layout/structure preserved from the original clone; colour tokens
  replaced with the Sudev brand palette supplied by the client.
  Two accent shades are used deliberately: --green (light) for accents
  on dark surfaces, --green-dark for accents/icons on light surfaces
  and hover states — each pairing checked against WCAG contrast.
*/

:root {
  --bg: #151312;
  --nav-bg: rgba(255, 255, 255, 0.03);
  --white: #fff;
  --ghost: #9a9a98;
  --light-gray: #e6e6e6;
  --green: #82a847;
  --green-dark: #516b2a;
  --muted: #6d6e70;
  --border: #b6b4bd33;
  --near-black: #221f20;

  --font-heading: "Poppins", "Poppins Placeholder", sans-serif;
  --font-body: "Inter", sans-serif;

  --max-width: 1240px;
  --gutter: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 16px;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: min(calc(100% - 48px), var(--max-width));
  margin: 24px auto 0;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
}

.topbar-brand {
  gap: 8px;
  width: fit-content;
  padding: 10px 16px 10px 12px;
  background: var(--nav-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 700;
  line-height: 30px;
  text-transform: uppercase;
}

.topbar-brand img {
  width: 40px;
  height: 36px;
  object-fit: contain;
}

.topnav {
  display: flex;
  justify-content: center;
  gap: 8px;
  justify-self: center;
  padding: 10px;
  background: var(--nav-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}

.topnav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
  border-radius: 10px;
  color: var(--white);
  transition: background 0.2s ease, color 0.2s ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--green);
}

.topnav a::after {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  padding: 5px 8px;
  background: var(--near-black);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--white);
  content: attr(data-tooltip);
  font-size: 11px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  white-space: nowrap;
}

.topnav a:hover::after,
.topnav a:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.topnav svg {
  width: 20px;
  height: 20px;
}

/* ---------- Page layout ---------- */
.layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px var(--gutter) 56px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 901px) {

  .topbar,
  .layout {
    transform: translateX(24px);
  }
}

/* ---------- Profile card ---------- */
.profile-col {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.profile-card {
  position: relative;
  width: 100%;
  background: var(--white);
  color: var(--near-black);
  border-radius: 24px;
  padding: 16px;
  text-align: center;
}

.profile-photo-wrap {
  border-radius: 16px;
  overflow: hidden;
  background: var(--green);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-photo-wrap svg {
  width: 100%;
  height: 100%;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  margin: 16px 0 8px;
}

.profile-bio {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}

/* ---------- Sections shared ---------- */
main {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

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

.section-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 44px;
  font-size: clamp(34px, 6.3vw, 88px);
}

.section-heading .solid {
  display: block;
  color: var(--white);
}

.section-heading .ghost {
  display: block;
  color: var(--ghost);
}

/* ---------- Hero ---------- */
.hero-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0 0 16px;
  font-size: clamp(40px, 7.6vw, 110px);
}

.hero-heading .solid {
  color: var(--white);
}

.hero-heading .ghost {
  color: var(--ghost);
}

.hero-heading .heading-line {
  display: block;
}

.hero-copy {
  max-width: 50ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  text-align: justify;
  text-align-last: left;
  margin: 0 0 56px;
}

.stats {
  display: flex;
  width: min(100%, 680px);
  justify-content: space-between;
  gap: 56px;
  margin: 0 0 64px;
  flex-wrap: wrap;
}

.stats>div {
  flex: 1 1 0;
  min-width: 120px;
}

.stat-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(52px, 5vw, 72px);
  line-height: 1;
  color: var(--white);
  margin: 0;
}

.stat-label {
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 4px 0 0;
}

.stat-industries-inner {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.industries-panel {
  position: absolute;
  top: 50%;
  left: calc(100% + 20px);
  transform: translateY(-50%) translateX(8px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(130, 168, 71, 0.35);
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
  z-index: 10;
}

.industries-panel::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -6px;
  width: 12px;
  height: 12px;
  transform: translateY(-50%) rotate(45deg);
  background: rgba(20, 20, 20, 0.95);
  border-left: 1px solid rgba(130, 168, 71, 0.35);
  border-bottom: 1px solid rgba(130, 168, 71, 0.35);
  z-index: -1;
}

.stat-industries-inner:hover .industries-panel,
.stat-industries-inner:focus-visible .industries-panel {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

.industry-chip {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--light-gray);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transition-delay: calc(var(--d) * 80ms);
}

.stat-industries-inner:hover .industry-chip,
.stat-industries-inner:focus-visible .industry-chip {
  opacity: 1;
  transform: translateX(0);
}

.industry-chip svg {
  width: 20px;
  height: 20px;
  color: var(--green);
}

.reveal-section .reveal-child {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-section.is-visible .reveal-child {
  opacity: 1;
  transform: translateY(0);
}

.reveal-section.is-visible .reveal-child:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal-section.is-visible .reveal-child:nth-child(3) {
  transition-delay: 0.2s;
}

.reveal-section.is-visible .reveal-child:nth-child(4) {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-section .reveal-child {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .industries-panel,
  .industry-chip {
    transition: none;
  }
}

.row-body {
  flex: 1;
  min-width: 0;
}

.row-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 4px;
  color: var(--white);
}

.row-list {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
}

.row-list::before {
  content: '';
  position: absolute;
  top: 42px;
  bottom: 42px;
  left: 22px;
  width: 2px;
  background: linear-gradient(to bottom, var(--green), rgba(130, 168, 71, 0.1));
  z-index: 0;
}

.exp-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-left: -20px;
  padding: 20px 16px 20px 20px;
  border-radius: 12px;
  transition: background 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.exp-row:hover {
  background: rgba(255, 255, 255, 0.035);
  transform: translateX(4px);
}

.exp-logo-badge {
  position: relative;
  z-index: 1;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 0 0 4px var(--bg);
}

.exp-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.exp-row .row-title {
  font-size: 19px;
  margin: 0;
}

.exp-row .row-body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.exp-row .row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.exp-row .row-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 8px 0 0;
  max-width: 58ch;
}

.exp-row .row-date {
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(130, 168, 71, 0.12);
  border: 1px solid rgba(130, 168, 71, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Tools grid ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 6px;
  margin: -6px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.25s ease, transform 0.2s ease;
}

.tool-item:hover,
.tool-item:focus-visible {
  background: rgba(255, 255, 255, 0.035);
  transform: translateX(4px);
}

.tool-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tool-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.tool-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  margin: 0;
  color: var(--white);
}

.tool-sub {
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 0;
}

/* ---------- Contact ---------- */
.contact-cta {
  max-width: 640px;
}

.contact-cta p {
  max-width: 42ch;
  color: var(--muted);
  margin: 0 0 24px;
}

.submit-btn {
  display: inline-block;
  background: var(--green);
  color: var(--near-black);
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.submit-btn:hover,
.submit-btn:focus-visible {
  background: var(--green-dark);
  color: var(--white);
}

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px var(--gutter) 64px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.site-footer a {
  color: var(--green);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .topbar,
  .layout {
    transform: none;
  }

  .profile-col {
    position: static;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  main {
    gap: 88px;
  }

  .row-list>li {
    padding: 28px 0;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .site-footer {
    padding: 40px var(--gutter) 48px;
  }

  .hero-copy {
    margin-bottom: 36px;
    font-size: 17px;
  }

  .stats {
    margin-bottom: 40px;
  }
}

@media (max-width: 520px) {
  .topbar {
    top: 10px;
    grid-template-columns: auto 1fr;
    grid-template-areas: "brand nav";
    gap: 8px;
    width: calc(100% - 32px);
    margin-top: 16px;
  }

  .topbar-brand {
    grid-area: brand;
    gap: 6px;
    padding: 6px 10px 6px 8px;
    font-size: 17px;
    line-height: 23px;
    border-radius: 11px;
  }

  .topbar-brand img {
    width: 34px;
    height: 32px;
  }

  .topnav {
    grid-area: nav;
    justify-self: end;
    gap: 4px;
    padding: 6px;
    border-radius: 11px;
  }

  .topnav a {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .topnav svg {
    width: 18px;
    height: 18px;
  }

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

  .row-list>li {
    align-items: flex-start;
    padding: 22px 0;
    gap: 14px;
  }

  .stats {
    width: 100%;
    gap: 24px;
    margin-bottom: 32px;
  }

  .hero-copy {
    margin-bottom: 32px;
  }

  .hero-heading {
    font-size: clamp(38px, 12vw, 64px);
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .exp-row .row-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  main {
    gap: 64px;
  }

  .site-footer {
    padding: 32px var(--gutter) 40px;
  }
}