:root {
  --primary: #b57edc;
  --secondary: #e6d6f5;
  --accent: #f3ecfa;
  --bg: #ffffff;
  --text: #2d2d2d;
  --muted: #6d6d6d;
  --shadow: 0 10px 30px rgba(181, 126, 220, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s ease;
  --nav-height: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #fdfaff 70%, #ffffff 100%);
  color: var(--text);
  line-height: 1.7;
}

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

a {
  color: var(--text);
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, 1120px);
  margin-inline: auto;
}

.section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 4rem 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 4.5rem 0;
  }
}

.section-soft {
  background: var(--accent);
}

.section-title {
  margin: 0 0 1rem;
  font-size: 1.45rem;
  line-height: 1.3;
}

.section-intro {
  margin-top: 0;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(181, 126, 220, 0.16);
}

.navbar {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(181, 126, 220, 0.3);
  border-radius: 10px;
  background: #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0.75rem;
  position: absolute;
  right: 1rem;
  top: calc(var(--nav-height) + 4px);
  width: min(300px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid rgba(181, 126, 220, 0.2);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition);
  max-height: calc(100dvh - var(--nav-height) - 1rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-menu a {
  display: block;
  padding: 0.65rem 0.7rem;
  border-radius: 8px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--secondary);
  color: #4f3270;
}

.hero {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
  text-align: center;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(181, 126, 220, 0.4);
  box-shadow: var(--shadow);
}

@media (min-width: 480px) {
  .hero-image img {
    width: 240px;
    height: 240px;
  }
}

@media (min-width: 768px) {
  .hero {
    text-align: left;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero-image {
    justify-content: flex-start;
  }

  .hero-image img {
    width: 280px;
    height: 280px;
    border-radius: 24px;
  }
}

.eyebrow {
  color: var(--primary);
  font-weight: 600;
  margin: 0;
  font-size: 0.9rem;
}

h1 {
  margin: 0.4rem 0 0.8rem;
  font-size: 1.65rem;
  line-height: 1.25;
}

.hero-title {
  margin: 0 0 0.8rem;
  font-weight: 600;
  color: #4f3270;
  font-size: 0.95rem;
}

.hero-description {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions {
    justify-content: flex-start;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(181, 126, 220, 0.35);
  background: #a86fd1;
}

.btn-secondary {
  background: #fff;
  color: #4f3270;
  border-color: rgba(181, 126, 220, 0.45);
}

.btn-secondary:hover {
  background: var(--secondary);
}

.grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: #fff;
  border: 1px solid rgba(181, 126, 220, 0.2);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: 0 8px 22px rgba(45, 45, 45, 0.05);
  transition: var(--transition);
  word-break: break-word;
  overflow-wrap: break-word;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card h2,
.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  line-height: 1.4;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card-soft {
  background: #fcf9ff;
}

.about-grid .card,
.cards-4 .card {
  min-height: 180px;
}

.timeline {
  border-left: 2px solid rgba(181, 126, 220, 0.35);
  margin-left: 0.5rem;
  padding-left: 1.1rem;
}

.timeline-item {
  position: relative;
  padding: 0.2rem 0 1.3rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.72rem;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(181, 126, 220, 0.2);
}

.timeline-year {
  display: inline-block;
  padding: 0.16rem 0.65rem;
  border-radius: 999px;
  background: var(--secondary);
  color: #4f3270;
  font-weight: 600;
  font-size: 0.88rem;
}

.timeline-content h3 {
  margin: 0.65rem 0 0.3rem;
  font-size: 1rem;
}

.timeline-content p {
  margin: 0;
  color: var(--muted);
}

.exp-card:hover {
  box-shadow: 0 0 0 1px rgba(181, 126, 220, 0.4), 0 14px 30px rgba(181, 126, 220, 0.32);
}

.meta {
  margin-bottom: 0.7rem;
  color: #6d52a8;
  font-size: 0.92rem;
  font-weight: 500;
}

.list {
  margin: 0.8rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.list li {
  margin-bottom: 0.4rem;
}

.skill-bar {
  margin-bottom: 0.95rem;
}

.skill-label {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.skill-label span:first-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-label span:last-child {
  flex-shrink: 0;
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: #eee6f7;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #d2b0ea 0%, #b57edc 100%);
  transition: width 1s ease;
}

.is-visible .progress span {
  width: var(--value);
}

.portfolio-card {
  padding: 0;
  overflow: hidden;
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.portfolio-card:hover img {
  transform: scale(1.04);
}

.card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.card-body p {
  margin-bottom: 1rem;
}

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

.media-card {
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(181, 126, 220, 0.2);
  box-shadow: 0 8px 22px rgba(45, 45, 45, 0.05);
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform var(--transition);
  cursor: zoom-in;
}

.media-card:hover img {
  transform: scale(1.03);
}

.media-card figcaption {
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  color: #5f4597;
  background: #fcf9ff;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 24, 0.74);
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 120;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-image {
  max-width: min(980px, 96vw);
  max-height: 86vh;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #513377;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

/* ── Business Stats ───────────────────────────────────────── */
.stats-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

.stat-card {
  background: #fff;
  border: 1px solid rgba(181, 126, 220, 0.2);
  border-radius: var(--radius);
  padding: 1.2rem 0.9rem;
  text-align: center;
  box-shadow: 0 8px 22px rgba(45, 45, 45, 0.05);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.3rem;
  line-height: 1.4;
}

/* ── Card Icon ────────────────────────────────────────────── */
.card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
  line-height: 1;
}

/* ── Value Proposition Banner ─────────────────────────────── */
.value-banner {
  background: linear-gradient(135deg, #4f3270 0%, #7b4fa6 60%, #b57edc 100%);
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  color: #fff;
  display: grid;
  gap: 1.2rem;
  text-align: center;
}

.value-banner h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #fff;
  line-height: 1.4;
}

@media (min-width: 600px) {
  .value-banner {
    padding: 2rem 1.8rem;
    text-align: left;
  }

  .value-banner h2 {
    font-size: 1.4rem;
  }
}

.value-banner p {
  margin: 0;
  opacity: 0.88;
  line-height: 1.7;
}

.value-banner .btn-light {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  background: #fff;
  color: #4f3270;
  border: none;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.value-banner .btn-light:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

/* ── Tools Section ────────────────────────────────────────── */
.tools-category {
  margin-bottom: 2rem;
}

.tools-category-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(181, 126, 220, 0.2);
}

.tools-category-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.tools-category-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #4f3270;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.tool-card {
  background: #fff;
  border: 1px solid rgba(181, 126, 220, 0.18);
  border-radius: var(--radius-sm);
  padding: 1.1rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(45, 45, 45, 0.04);
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(181, 126, 220, 0.4);
}

.tool-logo-wrap {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border: 1px solid rgba(181, 126, 220, 0.15);
}

.tool-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.tool-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #4f3270;
  line-height: 1.3;
}

/* ── Business Badge ───────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--secondary);
  color: #4f3270;
}

/* ── CTA Section ──────────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 2rem 1rem;
}

.cta-section h2 {
  margin: 0 0 0.7rem;
  font-size: 1.6rem;
}

.cta-section p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.cta-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Contact Grid ─────────────────────────────────────────── */
.contact-grid {
  gap: 1rem;
}

.contact-list a {
  word-break: break-all;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 0.7rem;
}

.contact-list a {
  color: #563980;
}

.contact-form {
  display: grid;
  gap: 0.6rem;
}

.contact-form label {
  font-size: 0.92rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(181, 126, 220, 0.35);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(181, 126, 220, 0.18);
}

.site-footer {
  padding: 1.4rem 0 2rem;
  border-top: 1px solid rgba(181, 126, 220, 0.18);
}

.site-footer p {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── 480px breakpoint ─────────────────────────────────────── */
@media (min-width: 480px) {
  .section-title {
    font-size: 1.65rem;
  }

  h1 {
    font-size: 1.9rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── 768px (tablet) ───────────────────────────────────────── */
@media (min-width: 768px) {
  :root {
    --nav-height: 74px;
  }

  .section-title {
    font-size: 1.9rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  .cards-3,
  .about-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .stat-card {
    padding: 1.5rem 1.2rem;
  }

  .stat-label {
    font-size: 0.88rem;
  }

  .value-banner {
    grid-template-columns: 1fr auto;
    align-items: center;
    text-align: left;
    padding: 2.5rem 2rem;
  }

  .value-banner h2 {
    font-size: 1.5rem;
  }

  .tools-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .cta-section {
    padding: 3rem 1.5rem;
  }
}

/* ── 1024px (desktop) ─────────────────────────────────────── */
@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    background: transparent;
    width: auto;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    max-height: none;
    overflow-y: visible;
  }

  .nav-menu a {
    padding: 0.45rem 0.8rem;
  }

  .hero {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    min-height: 72vh;
    text-align: left;
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-image {
    justify-content: flex-end;
    order: -1;
  }

  .hero-image img {
    width: 100%;
    max-width: 330px;
    height: auto;
    border-radius: 28px;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  h1 {
    font-size: 2.4rem;
  }

  .section-title {
    font-size: 1.9rem;
  }
}

/* ── 1440px ───────────────────────────────────────────────── */
@media (min-width: 1440px) {
  .container {
    width: min(100% - 6rem, 1240px);
  }

  h1 {
    font-size: 2.6rem;
  }
}

/* ── Hero badge row alignment ─────────────────────────────── */
@media (min-width: 768px) {
  .hero-content > div[style*="display:flex"] {
    justify-content: flex-start !important;
  }
}

/* ── Accessibility / touch target improvements ────────────── */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .nav-toggle,
  .nav-menu a,
  .modal-close {
    min-height: 44px;
  }

  .card:hover,
  .stat-card:hover,
  .tool-card:hover,
  .portfolio-card:hover img {
    transform: none;
  }
}

/* ── Landscape mobile fix ─────────────────────────────────── */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .hero-image img {
    width: 120px;
    height: 120px;
  }

  .section {
    padding: 2rem 0;
  }
}
