/* ============================================
   BASE STYLES — kateelizsimon.com
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Playfair+Display:ital,wght@0,400;0,600;1,400;1,900&family=DM+Sans:wght@300;400;500&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth; /* Makes anchor links glide instead of snap */
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-cream);
  color: var(--color-ink);
  line-height: 1.6;
}

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

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6) var(--space-8);
  z-index: 100;
  background: linear-gradient(to bottom, var(--color-cream) 70%, transparent);
}

.nav-logo {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--color-ink);
  letter-spacing: 0.01em;
}

.nav-logo:hover { color: var(--color-sage); }

.nav-links {
  display: flex;
  gap: var(--space-8);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-light);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--color-ink);
  border-bottom-color: var(--color-sage);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding-top: 20vh;
  padding-bottom: 80px;
  background-color: var(--color-cream);
  background-image: url('../images/plaid-bg.jpg');
  background-size: cover;
  background-position: center;
}

/* Cream wash over the plaid image so text reads clearly */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(245, 240, 232, 0.65);
  pointer-events: none;
  z-index: 0;
}

/* Lift content and scroll arrow above the overlay */
.hero-inner,
.scroll-arrow {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* This is the element JS fades on scroll */
  will-change: opacity;
}

.hero-name {
  font-family: var(--font-serif);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(2rem, 11vw, 13rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotate(-2deg);
}

.name-line {
  display: block;
  line-height: 0.88;
}

.name-line + .name-line {
  margin-top: -0.15em;
}

/* Alternating name colors: dark brown / dusty rose / dark brown */
.hero-name .name-line:nth-child(1) { color: #2c1810; }
.hero-name .name-line:nth-child(2) { color: #c9847a; }
.hero-name .name-line:nth-child(3) { color: #2c1810; }

.hero-tagline {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-ink);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: var(--space-8);
}

/* Scroll arrow at bottom of hero */
.scroll-arrow {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-ink-faint);
  /* Gentle bobbing animation to invite scrolling */
  animation: bob 2s ease-in-out infinite;
}

.scroll-arrow:hover { color: var(--color-sage); }

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   CONTENT SECTIONS — shared styles
   ============================================ */
.content-section {
  padding: var(--space-24) var(--space-8);
}

/* Alternating background for visual rhythm */
.section-alt {
  background-color: var(--color-cream-dark);
}

.section-inner {
  max-width: 800px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-script);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 400;
  color: var(--color-ink);
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-ink-faint);
  font-style: italic;
  margin-bottom: var(--space-12);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-text p {
  font-size: var(--text-lg);
  color: var(--color-ink-light);
  line-height: 1.8;
  margin-bottom: var(--space-6);
  font-weight: 300;
}

.about-text p:last-child { margin-bottom: 0; }

.inline-link {
  color: var(--color-sage);
  border-bottom: 1px solid var(--color-sage-light);
  padding-bottom: 1px;
}

.inline-link:hover { color: var(--color-olive); }

/* ============================================
   CAREER SECTION
   ============================================ */

/* Ikat textile background — light cream wash so texture is a whisper */
#career {
  position: relative;
  overflow: hidden;
  background-image: url('../images/ikat.png');
  background-size: cover;
  background-position: center;
}

#career::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(245, 240, 232, 0.72);
  pointer-events: none;
  z-index: 0;
}

#career .section-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

#career .section-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  text-align: center;
}

#career .section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: #5a4a3a;
  font-style: italic;
}

/* ── Alternating timeline ── */
.career-timeline {
  position: relative;
  margin: var(--space-10) 0 0;
  padding-bottom: var(--space-6);
}

/* Vertical center line — warm hand-drawn ink feel */
.career-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  border-left: 3px dashed rgba(139, 90, 60, 0.4);
  transform: translateX(-1px);
  z-index: 0;
}

/* Wide cards, centered, shifted ±30px to create a tight zigzag */
.timeline-entry {
  position: relative;
  width: 85%;
  margin: 0 auto var(--space-4);
  z-index: 1;
}

.tl-left  { transform: translateX(-30px); }
.tl-right { transform: translateX(30px);  }

/* Mustard gold dot precisely on the center line.
   Formulas account for the ±30px entry shift + 5px dot radius:
   left card: calc(50% + 30px - 5px)  right card: calc(50% - 30px - 5px) */
/* ── Card: horizontal, logo left / title + desc right ── */
.career-card {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: 3px 4px 12px rgba(139, 90, 60, 0.15);
  padding: 24px;
  min-height: 120px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  /* Rotation set via CSS variable so hover can preserve it */
  --card-rotate: 0deg;
  transform: rotate(var(--card-rotate));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.career-card:hover {
  transform: rotate(var(--card-rotate)) scale(1.04);
  box-shadow: 5px 8px 24px rgba(139, 90, 60, 0.22);
}

.career-card { background: #fdfaf6; }

/* Per-card rotations via CSS variable — hover preserves the tilt */
.career-timeline .timeline-entry:nth-child(1) .career-card { --card-rotate: -1.5deg; }
.career-timeline .timeline-entry:nth-child(2) .career-card { --card-rotate:  1deg;   }
.career-timeline .timeline-entry:nth-child(3) .career-card { --card-rotate: -0.8deg; }
.career-timeline .timeline-entry:nth-child(4) .career-card { --card-rotate:  2deg;   }
.career-timeline .timeline-entry:nth-child(5) .career-card { --card-rotate: -1.2deg; }
.career-timeline .timeline-entry:nth-child(6) .career-card { --card-rotate:  0.8deg; }

.career-card-logo-wrap {
  flex-shrink: 0;
  width: 120px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.career-card-logo-wrap img {
  max-width: 120px;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.career-card-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.career-card-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: #2c1810;
  line-height: 1.3;
}

.career-card-desc {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #2c1810;
  line-height: 1.65;
  font-weight: 500;
}

/* Footnote ending the timeline */
.career-footnote {
  text-align: center;
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 0.9rem;
  color: #5a4a3a;
  font-weight: 500;
  margin-top: var(--space-8);
  padding: 12px 24px;
  border: 2px dotted #c9847a;
  border-radius: 8px;
  display: inline-block;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.skill-item {
  display: flex;
  gap: var(--space-8);
  align-items: flex-start;
}

.skill-number {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  color: var(--color-blush);
  font-weight: 600;
  letter-spacing: 0.05em;
  min-width: 28px;
  padding-top: 4px;
}

.skill-headline {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.skill-desc {
  font-size: var(--text-base);
  color: var(--color-ink-light);
  line-height: 1.7;
  font-weight: 300;
}

/* ============================================
   REVIEWS SECTION
   ============================================ */
.reviews-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.review-card {
  padding: var(--space-8);
  background-color: var(--color-cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-cream-dark);
}

.review-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--color-ink);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.review-attr {
  font-size: var(--text-sm);
  color: var(--color-ink-faint);
  letter-spacing: 0.05em;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  background-color: var(--color-olive);
  color: var(--color-cream);
  text-align: center;
  padding: var(--space-24) var(--space-8) 0;
}

.contact-section .section-inner {
  padding-bottom: var(--space-16);
}

.contact-title {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 400;
  color: var(--color-cream);
  margin-bottom: var(--space-6);
  letter-spacing: -0.01em;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--color-cream);
  border-bottom: 1px solid rgba(245, 240, 232, 0.4);
  padding-bottom: 4px;
  margin-bottom: var(--space-12);
  transition: border-color var(--transition);
}

.contact-email:hover {
  border-bottom-color: var(--color-cream);
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-8);
  margin-bottom: var(--space-12);
}

.contact-links a {
  font-size: var(--text-sm);
  color: rgba(245, 240, 232, 0.7);
  letter-spacing: 0.1em;
  text-transform: lowercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.contact-links a:hover {
  color: var(--color-cream);
  border-bottom-color: rgba(245, 240, 232, 0.5);
}

.contact-soon {
  font-size: var(--text-sm);
  color: rgba(245, 240, 232, 0.3);
  letter-spacing: 0.08em;
  font-style: italic;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  border-top: 1px solid rgba(245, 240, 232, 0.15);
  padding: var(--space-6) 0;
}

footer p {
  font-size: var(--text-xs);
  color: rgba(245, 240, 232, 0.4);
  letter-spacing: 0.1em;
  text-align: center;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-arrow { animation: none; }
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 660px) {
  /* Stack timeline to single column */
  .career-timeline::before { left: 16px; transform: none; }
  .timeline-entry { width: 100%; transform: none !important; padding-left: 0; }
}

@media (max-width: 600px) {
  .nav-links { gap: var(--space-4); }
  .nav-links a { font-size: 0.75rem; }
  .skill-item { flex-direction: column; gap: var(--space-2); }
  .contact-section { padding-top: var(--space-16); }
}