/* M Tahir Siddiqi — Light theme portfolio */

:root {
  --bg: #f3f7f9;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-soft: #e8f2f4;
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-soft: rgba(13, 148, 136, 0.12);
  --accent: #e8910c;
  --accent-soft: rgba(232, 145, 12, 0.14);
  --text: #12263a;
  --text-muted: #4a5d70;
  --text-dim: #6b7c8f;
  --border: rgba(18, 38, 58, 0.1);
  --radius: 16px;
  --radius-pill: 50px;
  --font-heading: "Unbounded", sans-serif;
  --font-body: "Poppins", sans-serif;
  --container: 1200px;
  --header-h: 80px;
  --shadow-soft: 0 12px 40px rgba(18, 38, 58, 0.08);
  --shadow-card: 0 8px 28px rgba(18, 38, 58, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(13, 148, 136, 0.1), transparent 45%),
    radial-gradient(ellipse at 90% 20%, rgba(232, 145, 12, 0.08), transparent 40%),
    var(--bg);
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: clip;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevent grid/flex children from forcing page overflow */
.hero-shell,
.services-grid,
.stats-strip,
.process-grid,
.why-grid,
.about-grid,
.skills-layout,
.faq-layout,
.contact-grid,
.service-single,
.footer-grid,
.header-inner {
  min-width: 0;
}

.hero-shell > *,
.services-grid > *,
.stats-strip > *,
.process-grid > *,
.why-grid > *,
.about-grid > *,
.skills-layout > *,
.faq-layout > *,
.contact-grid > *,
.service-single > *,
.footer-grid > * {
  min-width: 0;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease,
    transform 0.25s ease, box-shadow 0.25s ease;
}

ul {
  list-style: none;
}

button,
input,
textarea {
  font-family: inherit;
}

.container {
  width: min(100% - clamp(1.5rem, 4vw, 2.5rem), var(--container));
  margin-inline: auto;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.25;
  font-weight: 600;
}

.highlight {
  color: var(--accent);
}

.text-primary {
  color: var(--primary);
}

.section {
  padding: 90px 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(232, 242, 244, 0.5));
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.section-label::before,
.section-label::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--text-dim);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
  max-width: 16ch;
  overflow-wrap: break-word;
}

.section-title.wide {
  max-width: 24ch;
}

.section-desc {
  max-width: 48ch;
  color: var(--text-muted);
}

.section-head {
  margin-bottom: 3rem;
}

.section-head.center {
  text-align: center;
}

.section-head.center .section-title,
.section-head.center .section-desc {
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  max-width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.28);
}

.btn-outline {
  background: transparent;
  border-color: rgba(18, 38, 58, 0.18);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-icon {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(18, 38, 58, 0.15);
  background: var(--bg-elevated);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  width: 100%;
  overflow: visible;
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.header-inner .logo {
  justify-self: start;
}

.header-inner .header-cta,
.header-inner .menu-toggle {
  justify-self: end;
}

/* Desktop: nav centered in the header bar (nav is a sibling of header) */
.nav {
  display: block;
}

@media (min-width: 1101px) {
  .nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: var(--header-h);
    display: flex;
    align-items: center;
    z-index: 1001;
    background: transparent;
  }

  .nav-overlay {
    display: none !important;
  }

  .nav-drawer-head,
  .nav-close,
  .nav-mobile-cta {
    display: none !important;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-list > li > a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
  position: relative;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
  color: var(--text);
}

.nav-list > li > a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.has-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dropdown-trigger i {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.has-dropdown:hover .dropdown-trigger i,
.has-dropdown.open .dropdown-trigger i {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 230px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.55rem;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 20;
}

.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.dropdown a:hover,
.dropdown a.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.header-cta {
  display: inline-flex;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  z-index: 1002;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-close {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.nav-close:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: rgba(13, 148, 136, 0.35);
}

.nav-drawer-head {
  display: none;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 38, 58, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1001;
  pointer-events: none;
}

.nav-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
  }

  .menu-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .header-cta {
    display: none;
  }

  .header-inner > .logo {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-overlay {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(320px, 88vw);
    height: 100dvh;
    max-width: 100%;
    background: var(--bg-elevated);
    padding: 1.25rem 1.35rem 2rem;
    transform: translateX(110%);
    transition: transform 0.3s ease, visibility 0.3s ease;
    z-index: 1003;
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .nav.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-close {
    display: inline-flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    width: 100%;
  }

  .nav-list > li {
    width: 100%;
  }

  .nav-list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 0.35rem;
    font-size: 1.05rem;
    color: var(--text);
  }

  .nav-list > li > a.active {
    color: var(--primary);
  }

  .nav-list > li > a.active::after {
    display: none;
  }

  .dropdown {
    position: static;
    left: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    min-width: 0;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0.35rem;
    box-shadow: none;
    border: 0;
    background: var(--bg-soft);
    border-radius: 12px;
    padding: 0.35rem;
  }

  .has-dropdown.open .dropdown {
    display: grid;
    transform: none;
  }

  .has-dropdown:hover .dropdown {
    transform: none;
  }

  .nav-mobile-cta {
    display: inline-flex !important;
    margin-top: auto;
    width: 100%;
  }
}

.nav-mobile-cta {
  display: none;
}

/* Hero — professional split + circular portrait */
.hero {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 12% 30%, rgba(13, 148, 136, 0.12), transparent 48%),
    radial-gradient(ellipse at 88% 70%, rgba(232, 145, 12, 0.1), transparent 42%),
    var(--bg);
}

.hero-shell {
  width: min(100% - clamp(1.5rem, 4vw, 2.5rem), var(--container));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  min-height: calc(100vh - var(--header-h));
  padding: clamp(1.5rem, 4vw, 3rem) 0;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 560px;
}

.hero-eyebrow {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero-name {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: 1.1rem;
  color: var(--text);
}

.hero-text {
  max-width: 34ch;
  margin-bottom: 1.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 1.5rem;
}

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.hero-phone i {
  color: var(--primary);
}

.hero-phone:hover {
  color: var(--primary);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  background: transparent;
}

.hero-circle-wrap {
  width: min(100%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(145deg, var(--primary), var(--accent));
  box-shadow: 0 18px 50px rgba(18, 38, 58, 0.16);
}

.hero-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  background: #0a0a0a;
  border: 4px solid #ffffff;
}

.hero-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  border-radius: 50%;
}

.socials {
  display: flex;
  gap: 0.55rem;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.socials a:hover {
  transform: translateY(-3px);
  background: var(--accent);
}

/* Marquee */
.marquee-wrap {
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, #e7f4f3, #fff7eb, #e7f4f3);
  overflow: hidden;
  padding: 1.4rem 0;
  margin-top: 2rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: marquee 28s linear infinite;
}

.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--primary);
  white-space: nowrap;
}

.marquee-item i {
  color: var(--accent);
  -webkit-text-stroke: 0;
  font-size: 1.1rem;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: -10px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.stat-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-card span {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Services cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.4rem;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  box-shadow: var(--shadow-card);
}

.service-card:hover {
  border-color: rgba(13, 148, 136, 0.45);
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.service-card h3 a:hover {
  color: var(--primary);
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-dim);
}

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-main {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  max-width: 480px;
  box-shadow: var(--shadow-soft);
}

.about-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.experience-badge {
  position: absolute;
  left: -10px;
  bottom: 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-soft);
}

.experience-badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text);
  line-height: 1;
}

.experience-badge span {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.75rem 0;
  box-shadow: var(--shadow-card);
}

.info-item h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.info-item p,
.info-item a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.info-item a:hover {
  color: var(--primary);
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.profile-mini {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-mini img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.profile-mini strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
}

.profile-mini span {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Skills */
.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.skill-list {
  display: grid;
  gap: 1.25rem;
}

.skill-item label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.skill-item label span {
  color: var(--primary);
  font-size: 0.85rem;
}

.skill-bar {
  height: 10px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
}

.skill-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.4rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.process-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.process-card:hover::before {
  transform: scaleX(1);
}

.process-card .step {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.85rem;
  display: inline-block;
}

.process-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.55rem;
}

.process-card p {
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* Why me */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow-card);
}

.why-card i {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.55rem;
}

.why-card p {
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.faq-item button {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 1.1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  color: var(--text);
  font-weight: 500;
  font-size: 0.98rem;
  cursor: pointer;
}

.faq-item button i {
  color: var(--primary);
  transition: transform 0.25s ease;
}

.faq-item.open button i {
  transform: rotate(180deg);
}

.faq-item .faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-body {
  max-height: 480px;
}

.faq-item .faq-body p {
  padding: 0 1.25rem 1.15rem;
  color: var(--text-dim);
  font-size: 0.94rem;
}

.faq-aside {
  background: linear-gradient(160deg, var(--primary), #0b6e66);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.faq-aside h3 {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.faq-aside p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.5rem;
}

.faq-aside .btn-primary {
  background: #ffffff;
  color: var(--primary-dark);
}

.faq-aside .btn-primary:hover {
  background: #fff7eb;
  color: var(--text);
}

/* Page hero */
.page-hero {
  padding: 70px 0 50px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(13, 148, 136, 0.12), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(232, 145, 12, 0.1), transparent 35%),
    #ffffff;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.page-hero p {
  max-width: 48ch;
  margin-inline: auto;
}

.breadcrumb {
  display: inline-flex;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* Single service page */
.service-single {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.service-main-card,
.service-side-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.service-main-card .service-icon {
  margin-bottom: 1.25rem;
}

.service-main-card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.service-main-card > p {
  margin-bottom: 1.25rem;
}

.feature-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-muted);
}

.feature-list li i {
  color: var(--primary);
  margin-top: 0.3rem;
}

.service-side-card h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.related-services {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.related-services a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.92rem;
  background: #f8fbfc;
}

.related-services a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.service-contact-box {
  background: linear-gradient(160deg, var(--primary), #0b6e66);
  border-radius: 14px;
  padding: 1.35rem;
  color: #ffffff;
}

.service-contact-box p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  margin: 0.5rem 0 1rem;
}

.service-contact-box .btn-primary {
  background: #ffffff;
  color: var(--primary-dark);
  width: 100%;
}

/* Detailed services */
.service-detail {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  transition: border-color 0.25s ease;
  box-shadow: var(--shadow-card);
}

.service-detail:hover {
  border-color: rgba(13, 148, 136, 0.4);
}

.service-detail .num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--primary);
  line-height: 1;
}

.service-detail h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.service-detail h3 a:hover {
  color: var(--primary);
}

.service-detail .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
}

.service-detail p {
  color: var(--text-dim);
  max-width: 70ch;
}

.service-detail ul {
  margin-top: 1rem;
  display: grid;
  gap: 0.45rem;
}

.service-detail li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.service-detail li i {
  color: var(--primary);
  margin-top: 0.3rem;
}

/* CTA band */
.cta-band {
  background:
    linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(232, 145, 12, 0.1)),
    #ffffff;
  border-block: 1px solid var(--border);
  padding: 70px 0;
}

.cta-band .btn-outline {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
}

.cta-band .btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  max-width: 18ch;
}

.cta-inner p {
  margin-top: 0.75rem;
  max-width: 40ch;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow-card);
}

.contact-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.contact-list {
  display: grid;
  gap: 1.1rem;
  margin: 1.75rem 0;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.contact-list .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-list strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
}

.contact-list a,
.contact-list span {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.contact-list a:hover {
  color: var(--primary);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: #f8fbfc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Footer */
.site-footer {
  background: #102433;
  border-top: 1px solid transparent;
  padding: 60px 0 24px;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer .logo {
  color: #ffffff;
}

.site-footer h4 {
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  margin: 1rem 0 1.25rem;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

.footer-grid h4 {
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #5eead4;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
}

.footer-bottom a {
  color: #5eead4;
  font-weight: 500;
}

.footer-bottom a:hover {
  color: #ffffff;
}

.footer-links a i {
  width: 1.1rem;
  margin-right: 0.25rem;
  opacity: 0.85;
}

/* WhatsApp floating widget */
.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  z-index: 920;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55);
  color: #ffffff;
}

.wa-float::after {
  content: attr(aria-label);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #12263a;
  color: #ffffff;
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.wa-float:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease,
    background 0.25s ease;
  z-index: 900;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

/* ========== Responsive ========== */

/* Large tablets / small laptops — avoid cramped 4-col grids */
@media (max-width: 1200px) {
  .services-grid,
  .process-grid,
  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

/* Tablet + hamburger nav (synced with JS at 1100) */
@media (max-width: 1100px) {
  .hero {
    min-height: 0;
  }

  .hero-shell {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    width: min(100% - clamp(1.5rem, 4vw, 2.5rem), var(--container));
    gap: 1.75rem;
    padding: 2rem 0 2.5rem;
    justify-items: center;
    text-align: center;
  }

  .hero-visual {
    order: -1;
    width: 100%;
  }

  .hero-circle-wrap {
    width: min(72vw, 340px);
    margin-inline: auto;
  }

  .hero-content {
    order: 2;
    max-width: 560px;
    align-items: center;
  }

  .hero-text {
    max-width: 42ch;
    margin-inline: auto;
  }

  .btn-group,
  .hero-meta-row {
    justify-content: center;
  }

  .section-title {
    max-width: 22ch;
  }

  .section-title.wide {
    max-width: 28ch;
  }
}

@media (max-width: 900px) {
  .skills-layout,
  .faq-layout,
  .why-grid,
  .service-single {
    grid-template-columns: minmax(0, 1fr);
  }

  .why-grid {
    gap: 1.25rem;
  }
}

@media (max-width: 800px) {
  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-main {
    margin-inline: auto;
    width: 100%;
  }

  .experience-badge {
    left: 10px;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-detail {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.5rem;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .cta-inner p {
    margin-inline: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Phones */
@media (max-width: 560px) {
  :root {
    --header-h: 72px;
  }

  .site-header {
    height: var(--header-h);
  }

  .hero-shell {
    padding: 1.5rem 0 2rem;
    gap: 1.5rem;
  }

  .hero-circle-wrap {
    width: min(78vw, 280px);
  }

  .hero-name {
    font-size: clamp(1.85rem, 9vw, 2.55rem);
    word-break: break-word;
  }

  .hero-text {
    font-size: 0.98rem;
  }

  .btn {
    white-space: normal;
    text-align: center;
    padding: 0.85rem 1.25rem;
  }

  .btn-group {
    width: 100%;
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
    flex: 1 1 auto;
  }

  .hero-meta-row {
    flex-direction: column;
    align-items: center;
  }

  .services-grid,
  .process-grid,
  .stats-strip,
  .info-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 70px 0;
  }

  .section-head {
    margin-bottom: 2rem;
  }

  .section-title {
    max-width: none;
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .page-hero {
    padding: 3rem 0 2.5rem;
  }

  .page-hero h1 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
    word-break: break-word;
  }

  .stat-card,
  .service-card,
  .process-card,
  .why-card {
    padding: 1.35rem;
  }

  .wa-float::after {
    display: none;
  }

  .wa-float {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  .back-to-top {
    width: 44px;
    height: 44px;
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .hero-circle-wrap {
    width: min(82vw, 240px);
  }

  .logo {
    font-size: 0.9rem;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .service-detail {
    padding: 1.25rem;
  }
}

/* ========== Animations ========== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulseSoft {
  0%,
  100% {
    box-shadow: 0 0 0 14px rgba(232, 145, 12, 0.12);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(13, 148, 136, 0.1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero load animations */
.hero.is-ready .hero-content {
  animation: slideInLeft 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero.is-ready .hero-visual {
  animation: scaleIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.hero.is-ready .hero-circle-wrap {
  animation: scaleIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

.reveal-delay-4 {
  transition-delay: 0.32s;
}

/* Skill bars animate when visible */
.skill-bar span {
  width: 0 !important;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-item.is-visible .skill-bar span {
  width: var(--skill-width, 90%) !important;
}

/* Button / card motion polish */
.btn {
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.btn:active {
  transform: translateY(0) scale(0.97);
}

.service-card,
.stat-card,
.process-card,
.why-card,
.service-detail,
.contact-card,
.faq-item {
  transition:
    border-color 0.25s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.stat-card:hover,
.process-card:hover,
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(13, 148, 136, 0.35);
}

.socials a {
  transition: transform 0.25s ease, background 0.25s ease;
}

.page-hero h1 {
  animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-hero p {
  animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

@media (max-width: 1100px) {
  .hero.is-ready .hero-content,
  .hero.is-ready .hero-visual,
  .hero.is-ready .hero-circle-wrap {
    animation-name: fadeUp;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero.is-ready .hero-content,
  .hero.is-ready .hero-visual,
  .hero.is-ready .hero-circle-wrap,
  .page-hero h1,
  .page-hero p,
  .marquee-track {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .skill-bar span {
    width: var(--skill-width, 90%) !important;
    transition: none;
  }
}
