* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #1a2540;
  --slate: #5a6e8f;
  --accent: #ff6b3d;
  --cream: #faf9f7;
  --white: #ffffff;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.6;
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(8px);
  z-index: 50;
  border-bottom: 1px solid rgba(26, 37, 64, 0.05);
  padding: 1rem 0;
}

.header-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header a {
  color: var(--navy);
  text-decoration: none;
}
header a:hover {
  color: var(--accent);
}

.logo {
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 1.25rem;
}

.header-links {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
}

/* Main sections */
.container {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-image {
  width: 18rem;
  height: 18rem;
  border-radius: 1rem;
  border: 2px solid rgba(255, 107, 61, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.hero-content h1 {
  font-family: Georgia, serif;
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-content h2 {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  color: var(--slate);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.hero-content p {
  color: var(--slate);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.hero-accent {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--navy);
  color: var(--cream);
}

.btn-primary:hover {
  background: #0d1829;
}

.btn-secondary {
  border: 1px solid rgba(26, 37, 64, 0.2);
  color: var(--navy);
}

.btn-secondary:hover {
  border-color: rgba(26, 37, 64, 0.5);
}

/* Skills */
.skills-section {
  text-align: center;
  padding: 2rem 1.5rem;
}

.skill-pills {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.skill-pill {
  background: rgba(26, 37, 64, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  color: var(--navy);
  border: 1px solid rgba(26, 37, 64, 0.1);
}

/* Personal Statement */
.statement-section {
  background: rgba(250, 249, 247, 0.6);
  padding: 2rem 1.5rem;
}

.statement-content {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
  color: var(--slate);
}

.statement-tag {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

/* Experience Section */
.experience-section {
  background: rgba(26, 37, 64, 0.03);
  padding: 6rem 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: Georgia, serif;
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* Tabs */
.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  background: rgba(26, 37, 64, 0.05);
  border-radius: 0.75rem;
  padding: 0.25rem;
  margin-bottom: 3rem;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
  color: var(--slate);
}

.tab-btn.active {
  background: var(--navy);
  color: var(--cream);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.interest-card {
  position: relative;
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26, 37, 64, 0.07);
  border: 1px solid rgba(26, 37, 64, 0.08);
  transition:
    box-shadow 0.25s,
    transform 0.25s;
  display: flex;
  flex-direction: column;
}

.interest-card:hover {
  box-shadow: 0 6px 24px rgba(26, 37, 64, 0.13);
  transform: translateY(-2px);
}

.interest-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f5f3e8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.interest-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.interest-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.interest-card-body h3 {
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 1.125rem;
  margin: 0;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.interest-card-body p {
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.6;
  margin: 0;
}

.cv-entry {
  margin-bottom: 3rem;
  border-left: 4px solid rgba(255, 107, 61, 0.4);
  padding-left: 2rem;
}

.cv-entry-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.cv-entry-left {
  flex: 1;
  min-width: 0;
}

.cv-entry-header h3 {
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  color: var(--navy);
}

.cv-company {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.15rem;
}

.cv-location {
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 0.15rem;
}

.cv-entry-period {
  color: var(--slate);
  font-size: 0.8rem;
  font-family: monospace;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 0.25rem;
}

/* Rich text content (overview + achievements) */
.cv-rich-text p {
  margin-bottom: 0.6em;
  color: var(--slate);
}

.cv-rich-text ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0.6em;
}

.cv-rich-text li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.5em;
  color: var(--slate);
  line-height: 1.6;
}

.cv-rich-text ul li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 0.5em;
  line-height: 2.2;
  color: var(--accent);
}

/* Card Tab System — pill style matching krisheath.com */
.card-tab-bar {
  display: flex;
  gap: 6px;
  margin: 1rem 0 0.875rem 0;
}

.card-tab-btn {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 107, 61, 0.35);
  background: transparent;
  color: rgba(255, 107, 61, 0.7);
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
}

.card-tab-btn:hover {
  background: rgba(255, 107, 61, 0.08);
  color: var(--accent);
  border-color: rgba(255, 107, 61, 0.6);
}

.card-tab-btn.active {
  background: rgba(255, 107, 61, 0.12);
  color: var(--accent);
  border-color: var(--accent);
}

.card-panel {
  display: block;
  padding-top: 0.75rem;
  animation: fadeIn 0.2s;
}

.card-panel.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Contact Section */
.contact-section {
  background: var(--cream);
  color: var(--navy);
  padding: 4rem 1.5rem;
  border-top: 1px solid rgba(26, 37, 64, 0.05);
}

.contact-header {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 2rem;
}

.contact-header .statement-tag {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.contact-header h2 {
  font-family: Georgia, serif;
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--navy);
}

.contact-header p {
  font-size: 1.05rem;
  margin-bottom: 0;
  color: var(--slate);
}

.contact-form {
  max-width: 48rem;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(26, 37, 64, 0.1);
  background: rgba(26, 37, 64, 0.03);
  color: var(--navy);
  font-family: inherit;
  font-size: 0.875rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(26, 37, 64, 0.4);
}

.form-group input:disabled,
.form-group textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-notice {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: rgba(26, 37, 64, 0.6);
}

.form-notice a {
  color: var(--accent);
  font-weight: 600;
}

.contact-section .btn-primary {
  width: 100%;
  background: var(--navy);
  color: var(--cream);
  padding: 0.875rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-section .btn-primary:hover {
  background: #0d1829;
}

.contact-section .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Print Styles */
@media print {
  header,
  footer {
    display: none;
  }
  body {
    background: white;
    color: #000;
  }
  .contact-section {
    page-break-before: always;
  }
  .tab-buttons {
    display: none;
  }
  .card-tab-bar {
    display: none;
  }
  .card-panel {
    display: block !important;
  }
  .tab-content {
    display: block !important;
    page-break-inside: avoid;
  }
  .cv-entry {
    page-break-inside: avoid;
  }
  a {
    color: #1e40af;
  }
  section {
    page-break-inside: avoid;
  }
}

/* Footer */
footer {
  background: rgba(26, 37, 64, 0.05);
  border-top: 1px solid rgba(26, 37, 64, 0.1);
  padding: 2rem 1.5rem;
  text-align: center;
  color: rgba(26, 37, 64, 0.6);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .cv-entry-grid {
    grid-template-columns: 1fr;
  }
}
