/* =========================================================
   Eric Meyer's CSS Reset v2.0 | 20110126
   License: none (public domain)
   ========================================================= */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
  /* Reset will be overridden below */
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* =========================================================
   Minimal, Clean, Tech-Forward Design
   Light & Warm with Blue Accents
   Squarespace-inspired
   ========================================================= */

:root {
  /* Light & Warm Palette */
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --surface-2: #F5F5F4;
  --border: #E5E5E4;
  --border-light: #F0F0EF;

  /* Text */
  --text: #1A1A1A;
  --text-2: #4A4A4A;
  --muted: #8A8A8A;

  /* Blue Accents */
  --accent: #2563EB;
  --accent-light: #3B82F6;
  --accent-dark: #1E40AF;
  --accent-bg: #EFF6FF;

  /* Warm Tones */
  --warm: #FEF3C7;
  --warm-light: #FFFBEB;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);

  /* Spacing */
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Container */
  --container: 1200px;
  --reading: 720px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

a:hover {
  color: var(--accent);
}

a:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

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

.container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

@supports (width: min(100px, 50px)) {
  .container {
    width: min(var(--container), calc(100% - 48px));
  }
}

.reading {
  max-width: var(--reading);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

@supports (width: min(100px, 50px)) {
  .reading {
    width: min(var(--reading), calc(100% - 48px));
  }
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.95);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s var(--ease);
}

@supports (backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px)) {
  header.site-header {
    background: rgba(250, 250, 249, 0.85);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: transform 0.3s var(--ease);
}

.brand:hover {
  transform: translateX(2px);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(5deg) scale(1.05);
  background: var(--accent-light);
}

.brand-name {
  font-weight: 600;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  position: relative;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: var(--radius);
  background: var(--accent-bg);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::before {
  opacity: 1;
}

.nav-links a.cta {
  background: var(--accent);
  color: white;
  font-weight: 500;
  border: 1px solid var(--accent);
}

.nav-links a.cta::before {
  background: var(--accent-light);
}

.nav-links a.cta:hover {
  background: var(--accent-light);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* Main */
main {
  padding: 60px 0 100px;
  animation: fadeIn 0.6s var(--ease-out);
}

@keyframes fadeIn{
  from{
    opacity: 0;
    transform: translateY(20px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typography */
.h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 700;
  color: var(--text);
}

.h2 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 12px;
}

.lead {
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
  font-weight: 400;
}

.section {
  margin-top: 64px;
}

.section-header {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

/* Hero */
.hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  animation: heroFadeIn 0.8s var(--ease-out);
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.hero-inner {
  position: relative;
  padding: 48px;
  z-index: 1;
}

.hero-compact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
}

.hero-profile-image {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 2px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.hero-profile-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  object-fit: none;
}

.hero:hover .hero-profile-image {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero .h1 {
  animation: textFadeIn 0.8s var(--ease-out) 0.2s both;
}

.hero .lead {
  animation: textFadeIn 0.8s var(--ease-out) 0.3s both;
}

@keyframes textFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  animation: textFadeIn 0.8s var(--ease-out) 0.4s both;
}

.hero-cv {
  background: linear-gradient(135deg, var(--accent-bg), var(--surface));
}

/* Values Section */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.value-card:hover::before {
  transform: scaleX(1);
}

.value-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: var(--accent);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

.value-card:hover .value-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--accent);
  color: white;
}

.value-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.value-text {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--accent-light);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent-light);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn.secondary {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn.secondary::before {
  background: var(--surface-2);
}

.btn.secondary:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

/* Cards & Grids */
.grid {
  display: grid;
  gap: 24px;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, var(--accent-bg), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

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

.card:hover::before {
  opacity: 0.3;
}

.card-title {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--text);
  transition: color 0.3s var(--ease);
}

.card:hover .card-title {
  color: var(--accent);
}

.card-text {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.card.lift {
  cursor: pointer;
}

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

/* Timeline */
.timeline {
  display: grid;
  gap: 24px;
}

.timeline-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.4s var(--ease);
  position: relative;
  padding-left: 48px;
}

.timeline-item::before {
 
  position: absolute;
  left: 24px;
  top: 40px;
  bottom: -24px;
  width: 2px;
  background: var(--border);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-item::after {

  position: absolute;
  left: 20px;
  top: 36px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-item:hover {
  transform: translateX(4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.timeline-role {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--text);
}

.timeline-meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px;
  font-weight: 400;
}

.bullet-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-2);
  display: grid;
  gap: 8px;
  font-size: 15px;
  line-height: 1.7;
  list-style: disc;
}

.bullet-list.compact {
  margin-top: 12px;
  gap: 6px;
  font-size: 14px;
}

.bullet-list li {
  position: relative;
}

.bullet-list li::marker {
  color: var(--accent);
}

/* Pills/Tags */
.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.pill {
  font-size: 12px;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: 6px 12px;
  border-radius: 999px;
  transition: all 0.3s var(--ease);
  display: inline-block;
  font-weight: 400;
}

.pill:hover {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.case-block {
  margin-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.3s var(--ease);
}

.case-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.case-block:hover {
  padding-left: 8px;
}

.case-block:hover h3 {
  color: var(--accent);
}

.case-block h3 {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
  font-weight: 600;
  transition: color 0.3s var(--ease);
}

.timeline-meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px;
  font-weight: 400;
}

.case-block p {
  margin: 0;
  color: var(--text-2);
  line-height: 1.7;
  font-size: 15px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--muted);
  font-size: 14px;
  background: var(--surface);
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .hero-compact {
    gap: 32px;
  }
  
  .hero-profile-image {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px;
  }
  
  .nav-links a {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .hero-inner {
    padding: 32px 24px;
  }
  
  .hero-compact {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  
  .hero-profile-image {
    margin: 0 auto;
  }
  
  .cols-3,
  .cols-2 {
    grid-template-columns: 1fr;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .card,
  .timeline-item {
    padding: 24px;
  }
  
  .timeline-item {
    padding-left: 40px;
  }
  
  .timeline-item::before {
    left: 20px;
  }
  
  .timeline-item::after {
    left: 16px;
  }
  
  main {
    padding: 40px 0 60px;
  }
  
  .section {
    margin-top: 48px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .reading {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .hero-inner {
    padding: 24px 20px;
  }

  .hero-cta{
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  
  .card,
  .timeline-item,
  .value-card {
    padding: 20px; 
  }
  
  .h1 {
    font-size: 32px;
  }
  
  .h2 {
    font-size: 24px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}
