/* Gruvbox Color Palette */
:root {
  --bg-dark: #1d2021;
  --bg-light: #3c3836;
  --fg: #ebdbb2;
  --fg-dim: #a89984;
  --fg-darker: #928374;
  --accent: #83a598;
  --accent-bright: #8ec07c;
  --yellow: #fabd2f;
  --yellow-dim: #d79921;
}

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  color: var(--fg-dim);
  background-color: var(--bg-dark);
  font-size: 16px;
}

::selection {
  background-color: var(--accent);
  color: var(--bg-dark);
}

/* Two Column Layout */
.site-wrapper {
  display: flex;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
}

/* Left Column - Fixed */
.left-column {
  position: sticky;
  top: 0;
  width: 45%;
  height: 100vh;
  padding: 4rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.intro .tagline {
  font-size: 1.5rem;
  color: var(--fg-dim);
  margin-bottom: 2rem;
}

.intro .about {
  max-width: 500px;
  margin-bottom: 3rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--fg-dim);
}

/* Navigation Links */
.section-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.section-nav a {
  color: var(--fg-darker);
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-nav a::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 1px;
  background-color: var(--fg-darker);
  transition: all 0.2s;
}

.section-nav a:hover {
  color: var(--fg);
}

.section-nav a:hover::before {
  width: 4rem;
  background-color: var(--fg);
}

.linkedin-nav-link {
  margin-top: 1rem;
  color: var(--accent) !important;
}

.linkedin-nav-link::before {
  background-color: var(--accent) !important;
}

/* Right Column - Scrollable */
.right-column {
  width: 55%;
  padding: 4rem 4rem 4rem 2rem;
}

/* Section Headers */
section {
  margin-bottom: 4rem;
  scroll-margin-top: 2rem;
}

section h2 {
  font-size: 0.85rem;
  color: var(--fg);
  margin-bottom: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: sticky;
  top: 0;
  background-color: var(--bg-dark);
  padding: 0.75rem 0;
  z-index: 10;
}

/* Experience */
.company-group {
  margin-bottom: 1.5rem;
}

.company-name {
  font-size: 1rem;
  color: var(--yellow-dim);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Timeline styling */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--bg-light);
  margin-left: 0.5rem;
}

.timeline-entry {
  position: relative;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.timeline-entry:last-child {
  margin-bottom: 0;
}

.timeline-entry::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  background-color: var(--fg-darker);
  border-radius: 50%;
}

.timeline-entry:hover {
  background-color: rgba(60, 56, 54, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.timeline-entry:hover::before {
  background-color: var(--accent);
}

.timeline-entry h4 {
  font-size: 0.95rem;
  color: var(--fg);
  margin-bottom: 0.15rem;
  font-weight: 600;
}

.date {
  color: var(--fg-darker);
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  font-family: monospace;
}

.location {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.company-group {
  animation: fadeInUp 0.5s ease-out both;
}

.company-group:nth-child(1) {
  animation-delay: 0.1s;
}

.company-group:nth-child(2) {
  animation-delay: 0.2s;
}

.company-group:nth-child(3) {
  animation-delay: 0.3s;
}

.company-group:nth-child(4) {
  animation-delay: 0.4s;
}

/* Responsive */
@media (max-width: 1024px) {
  .site-wrapper {
    flex-direction: column;
  }

  .left-column {
    position: static;
    width: 100%;
    height: auto;
    padding: 2.5rem 2rem 1rem;
  }

  .intro {
    justify-content: flex-start;
  }

  .intro h1 {
    font-size: 2.2rem;
    margin-bottom: 0.25rem;
  }

  .intro .tagline {
    font-size: 1.15rem;
    margin-bottom: 1rem;
  }

  .intro .about {
    margin-bottom: 1.5rem;
    font-size: 1rem;
  }

  .section-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1rem 0 2rem;
  }

  .section-nav a {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    padding: 0.5rem 0.25rem;
    background-color: rgba(60, 56, 54, 0.4);
    border: 1px solid var(--bg-light);
    border-radius: 4px;
    color: var(--fg-dim);
    font-family: monospace;
    font-weight: 500;
    text-align: center;
    justify-content: center;
    width: 100%;
    min-height: 3.2rem;
    line-height: 1.2;
  }

  .section-nav a::before {
    display: none !important;
  }

  .section-nav a:hover {
    background-color: rgba(60, 56, 54, 0.6);
    border-color: var(--accent);
    color: var(--fg);
  }

  .linkedin-nav-link {
    background-color: rgba(131, 165, 152, 0.1) !important;
    border-color: rgba(131, 165, 152, 0.3) !important;
    margin-top: 0 !important;
  }

  .linkedin-nav-link:hover {
    background-color: rgba(131, 165, 152, 0.2) !important;
    color: var(--accent-bright) !important;
  }

  .right-column {
    width: 100%;
    padding: 1.5rem 2rem;
  }

  section h2 {
    position: static;
  }
}

@media (max-width: 640px) {
  .left-column {
    padding: 2rem 1.5rem 0.5rem;
  }

  .intro h1 {
    font-size: 2rem;
  }

  .right-column {
    padding: 1rem 1.5rem;
  }
}
