/* =============================================
   Evolve Your Product — Main Stylesheet
   ============================================= */

:root {
  --bg:           #f9f9f9;
  --bg-white:     #ffffff;
  --text-dark:    #2c2c2c;
  --text-mid:     #555555;
  --text-light:   #888888;
  --border:       #e4e4e4;
  --grad-start:   #3b5bdb;
  --grad-end:     #845ef7;
  --grad:         linear-gradient(135deg, var(--grad-start), var(--grad-end));
  --shadow:       0 2px 12px rgba(0,0,0,0.07);
  --radius:       8px;
  --max-width:    1100px;
  --nav-height:   72px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--grad-start); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--grad-end); }

/* Gradient text utility */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 72px 0; }
.section--alt { background: var(--bg-white); }

/* ---- Navigation ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  box-shadow: var(--shadow);
}
.site-nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav__logo img {
  height: 40px;
  width: auto;
}
.site-nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.site-nav__links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.site-nav__links a:hover,
.site-nav__links a.active {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-bottom-color: var(--grad-start);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--text-dark);
  color: #aaa;
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer img {
  height: 32px;
  margin: 0 auto 16px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}
.site-footer a { color: #ccc; }
.site-footer a:hover { color: #fff; }

/* ---- Hero ---- */
.hero {
  background: var(--bg-white);
  padding: 80px 0 60px;
}
.hero__inner {
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero__text { flex: 1; }
.hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.hero__headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.hero__sub {
  font-size: 1.15rem;
  color: var(--text-mid);
  margin-bottom: 32px;
  max-width: 520px;
}
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn--grad {
  background: var(--grad);
  color: #fff;
  -webkit-text-fill-color: #fff;
  border: none;
}
.btn--outline {
  background: transparent;
  border: 2px solid var(--grad-start);
  color: var(--grad-start);
}
.hero__image {
  flex-shrink: 0;
}
.hero__image img {
  width: 280px;
  height: 360px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* ---- Section headings ---- */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-mid);
  max-width: 600px;
  margin: 0 auto;
}
.divider {
  width: 48px;
  height: 4px;
  background: var(--grad);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ---- About / Experience ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-bio { color: var(--text-mid); }
.about-bio p { margin-bottom: 16px; }

.timeline { list-style: none; }
.timeline__item {
  position: relative;
  padding-left: 24px;
  margin-bottom: 28px;
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad);
}
.timeline__item::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 18px;
  width: 2px;
  height: calc(100% + 10px);
  background: var(--border);
}
.timeline__item:last-child::after { display: none; }
.timeline__role {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.95rem;
}
.timeline__company {
  font-size: 0.9rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}
.timeline__dates {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 2px;
}
.timeline__desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-top: 6px;
}

/* ---- Competencies ---- */
.competencies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.competency-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--grad-start);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.competency-card__take {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.4;
}
.competency-card__label {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Pull quote ---- */
.pull-quote {
  background: var(--text-dark);
  padding: 72px 0;
  text-align: center;
}
.pull-quote blockquote {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.45;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pull-quote cite {
  display: block;
  margin-top: 20px;
  font-size: 0.85rem;
  font-style: normal;
  color: #888;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  -webkit-text-fill-color: #888;
}

/* ---- Philosophy ---- */
.philosophy {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.philosophy p {
  color: var(--text-mid);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}
.philosophy p:last-child { margin-bottom: 0; }

/* ---- Knowledge page ---- */
.knowledge-section {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px 28px;
  align-items: start;
  margin-bottom: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--border);
}
.knowledge-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.knowledge-section__image {
  padding-top: 4px;
}
.knowledge-section__image img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  opacity: 0.75;
}
.knowledge-section__content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.knowledge-section__content p { color: var(--text-mid); }

/* ---- Showcase ---- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.showcase-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.showcase-card__image { aspect-ratio: 16/9; overflow: hidden; }
.showcase-card__image img { width: 100%; height: 100%; object-fit: cover; }
.showcase-card__body { padding: 20px; }
.showcase-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.showcase-card__desc {
  font-size: 0.9rem;
  color: var(--text-mid);
}

/* ---- Contact ---- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contact-intro h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; }
.contact-intro p { color: var(--text-mid); }

.contact-form { background: var(--bg-white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--grad-start);
  box-shadow: 0 0 0 3px rgba(59,91,219,0.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-submit { width: 100%; }

.form-notice {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: none;
}
.form-notice--success { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; display: block; }
.form-notice--error   { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; display: block; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }
  .site-nav__links.open { display: flex; }

  .hero__inner { flex-direction: column-reverse; gap: 32px; }
  .hero__image img { width: 200px; height: 260px; }

  .about-grid { grid-template-columns: 1fr; }
  .knowledge-section { grid-template-columns: 48px 1fr; gap: 8px 20px; }

  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---- Honeypot (keep bots out, keep users unaware) ---- */
.form-pot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  tab-index: -1;
}

/* ---- Lightbox ---- */
.lightbox-trigger {
  cursor: zoom-in;
  transition: opacity 0.2s, transform 0.2s;
}
.lightbox-trigger:hover { opacity: 0.88; transform: scale(1.01); }

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.88);
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox-overlay.open { display: flex; }

.lightbox-overlay img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
  cursor: default;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 1001;
}
.lightbox-close:hover { opacity: 1; }
