/* ===================================
   DESIGN TOKENS
   =================================== */
:root {
  --bg:          #F9F7F4;
  --bg-alt:      #EFEBE5;
  --text:        #1A1918;
  --text-muted:  #6B6560;
  --accent:      #7C6B54;
  --accent-light:#E8E0D5;
  --green:       #3D7A55;
  --border:      #E2DDD8;
  --white:       #FFFFFF;
  --shadow-sm:   0 1px 3px rgba(26,25,24,0.07), 0 4px 16px rgba(26,25,24,0.04);
  --shadow-md:   0 2px 8px rgba(26,25,24,0.10), 0 8px 24px rgba(26,25,24,0.06);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --nav-h:        64px;
  --max-w:        900px;
  --section-gap:  96px;
  --radius:       8px;
  --radius-lg:    12px;
}

/* ===================================
   RESET
   =================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); }

/* ===================================
   LAYOUT
   =================================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section          { padding: var(--section-gap) 0; }
.section-alt      { background: var(--bg-alt); }

/* ===================================
   TYPOGRAPHY
   =================================== */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 44px;
  max-width: 520px;
  line-height: 1.65;
}

/* ===================================
   SCROLL ANIMATIONS
   =================================== */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* Stagger cards */
.cards .card:nth-child(2) { transition-delay: 0.1s; }
.cards .card:nth-child(3) { transition-delay: 0.2s; }

/* ===================================
   NAVIGATION
   =================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(249, 247, 244, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.7; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links > a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links > a:hover { color: var(--text); }

.nav-icon {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-icon:hover { color: var(--text); }

/* ===================================
   HERO
   =================================== */
.hero {
  padding: calc(var(--nav-h) + 88px) 0 104px;
}

.hero-content { max-width: 680px; }

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 24px;
}

.green-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.8s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61,122,85,0.35); }
  50%       { box-shadow: 0 0 0 5px rgba(61,122,85,0); }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}

.hero-bio {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
  cursor: pointer;
  border: 1.5px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover {
  background: #2e2d2c;
  border-color: #2e2d2c;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--text-muted);
  background: var(--bg-alt);
}

.btn-full { width: 100%; }

.btn:active { transform: scale(0.98); }
.btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

/* ===================================
   EXPERTISE CARDS
   =================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===================================
   STATS GRID
   =================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 40px;
  margin-bottom: 52px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ===================================
   MARKETS
   =================================== */
.markets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.market-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.market-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-block;
  padding: 5px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--text);
}

/* ===================================
   PROFILE LINKS
   =================================== */
.profile-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s, transform 0.2s;
}
.profile-link:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.profile-link-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-radius: 8px;
  color: var(--accent);
  flex-shrink: 0;
}

.profile-link-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-link-title {
  font-weight: 500;
  font-size: 0.9375rem;
}

.profile-link-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.profile-link-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ===================================
   CHATBOT
   =================================== */
.chatbot-header { margin-bottom: 28px; }

.chat-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 620px;
  box-shadow: var(--shadow-sm);
}

.chat-messages {
  padding: 24px;
  min-height: 240px;
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

/* Custom scrollbar */
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.message { display: flex; }
.message-ai   { justify-content: flex-start; }
.message-user { justify-content: flex-end; }

.message-bubble {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.message-ai .message-bubble {
  background: var(--bg-alt);
  color: var(--text);
  border-bottom-left-radius: 3px;
}

.message-user .message-bubble {
  background: var(--text);
  color: var(--bg);
  border-bottom-right-radius: 3px;
}

/* Typing indicator */
.message-typing .message-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 18px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: bounce 1.4s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0);    opacity: 0.4; }
  30%           { transform: translateY(-5px); opacity: 1; }
}

.chat-limit-notice {
  padding: 12px 20px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  text-align: center;
}
.chat-limit-notice a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-input-area {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border);
}

.chat-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 20px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: transparent;
  color: var(--text);
}
.chat-input::placeholder { color: var(--text-muted); }

.chat-send {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
  flex-shrink: 0;
}
.chat-send:hover   { color: var(--text); }
.chat-send:disabled { opacity: 0.35; cursor: default; }

/* ===================================
   CONTACT FORM
   =================================== */
.contact-form { max-width: 520px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,107,84,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236B6560' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.contact-success {
  text-align: center;
  padding: 56px 0;
  max-width: 520px;
}

.success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto 16px;
}

.contact-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.contact-success p { color: var(--text-muted); }

/* ===================================
   FOOTER
   =================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ===================================
   ABOUT
   =================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-bio {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-bio p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* Core skills */
.core-skills {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.core-skills-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.core-skill-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.core-skill-icon {
  color: var(--accent);
  font-size: 0.9rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.core-skill-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.core-skill-item p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ===================================
   EXPERIENCE
   =================================== */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.exp-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.exp-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.exp-company {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.exp-title {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
}

.exp-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.exp-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.exp-location {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-bullets li {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
}

.exp-bullets li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.exp-bullets strong {
  color: var(--text);
  font-weight: 600;
}

/* ===================================
   SKILLS
   =================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-bottom: 52px;
}

.skill-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-group-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8125rem;
  border: 1px solid var(--border);
}

.skill-strong {
  background: var(--accent-light);
  color: var(--text);
  border-color: transparent;
}

.skill-moderate {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

/* ===================================
   CERTIFICATIONS
   =================================== */
.certs-section {
  margin-bottom: 44px;
}

.certs-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.certs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.cert-item {
  display: inline-block;
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.certs-link {
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.certs-link:hover { opacity: 0.75; }

/* ===================================
   EDUCATION
   =================================== */
.education-section { }

.edu-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.edu-school {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
}

.edu-degree {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.edu-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ===================================
   HIGHLIGHTS
   =================================== */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.highlight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.highlight-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.highlight-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.highlight-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.highlight-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (min-width: 600px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .about-grid      { grid-template-columns: 1fr; gap: 36px; }
  .exp-header      { flex-direction: column; }
  .exp-right       { align-items: flex-start; }
  .highlights-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --section-gap: 72px; }

  .nav-links > a:not(.nav-icon) { display: none; }
  .nav-links { gap: 20px; }

  .form-row { grid-template-columns: 1fr; }

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

  .profile-link { padding: 16px 18px; }

  .about-stats { grid-template-columns: 1fr 1fr; }

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